summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGrégoire Détrez <gregoire.detrez@gu.se>2015-09-29 22:29:32 +0200
committerGrégoire Détrez <gregoire.detrez@gu.se>2015-09-29 22:29:32 +0200
commitdd4243022e3a2ecbed0838bc5433bec8b60532bd (patch)
tree432d8d0a1613d5d466089de726d07b12a3895943 /templates
parent2f59cf59685653c0a19f2abc4ea77f79afb46689 (diff)
Make the bug list prettier
Diffstat (limited to 'templates')
-rw-r--r--templates/archivepage.tmpl27
-rw-r--r--templates/blogpost.tmpl30
-rw-r--r--templates/page.tmpl11
3 files changed, 62 insertions, 6 deletions
diff --git a/templates/archivepage.tmpl b/templates/archivepage.tmpl
new file mode 100644
index 0000000..738abcc
--- /dev/null
+++ b/templates/archivepage.tmpl
@@ -0,0 +1,27 @@
+<hr/>
+<div class="archivepage row">
+ <div class="col-md-8 col-sm-8">
+ <TMPL_IF PERMALINK>
+ <a href="<TMPL_VAR PERMALINK>"><TMPL_VAR TITLE></a>
+ <TMPL_ELSE>
+ <a href="<TMPL_VAR PAGEURL>"><TMPL_VAR TITLE></a>
+ </TMPL_IF>
+ <TMPL_LOOP TAGS>
+ &nbsp;<span class="label label-default"><TMPL_VAR LINK></span>
+ </TMPL_LOOP>
+ </div>
+ <div class="col-md-4 col-sm-4 text-muted">
+ <span class="archivepagedate">
+ <small><TMPL_VAR CTIME></small>
+ <TMPL_IF AUTHOR>
+ by <span class="author">
+ <TMPL_IF AUTHORURL>
+ <a href="<TMPL_VAR AUTHORURL>"><TMPL_VAR AUTHOR></a>
+ <TMPL_ELSE>
+ <TMPL_VAR AUTHOR>
+ </TMPL_IF>
+ </span>
+ </TMPL_IF>
+ </span>
+ </div>
+</div>
diff --git a/templates/blogpost.tmpl b/templates/blogpost.tmpl
new file mode 100644
index 0000000..6156881
--- /dev/null
+++ b/templates/blogpost.tmpl
@@ -0,0 +1,30 @@
+<p class="text-right">
+ <TMPL_IF RSSURL>
+ <a class="label label-info" type="application/rss+xml" rel="alternate"
+ title="<TMPL_VAR RSSDESC>" href="<TMPL_VAR RSSURL>">RSS</a>
+ </TMPL_IF>
+ <TMPL_IF ATOMURL>
+ <a class="label label-info" type="application/atom+xml" rel="alternate"
+ title="<TMPL_VAR ATOMDESC>" href="<TMPL_VAR ATOMURL>">Atom</a>
+ </TMPL_IF>
+</p>
+<form <TMPL_IF POSTFORMID>id="<TMPL_VAR POSTFORMID ESCAPE=HTML>"</TMPL_IF>
+ action="<TMPL_VAR CGIURL>" method="get" class="form-inline">
+ <input type="hidden" name="do" value="blog" />
+ <input type="hidden" name="from" value="<TMPL_VAR ROOTPAGE>" />
+ <input type="hidden" name="subpage" value="1" />
+ <div class="row">
+ <div class="panel panel-default col-md-10 col-md-offset-1">
+ <div class="panel-body">
+ <span class="text-uppercase text-muted">
+ <strong><TMPL_VAR POSTFORMTEXT></strong>&nbsp;
+ </span>
+ <div class="form-group">
+ <label for="title" class="sr-only">Title</label>
+ <input class="form-control" placeholder="Title" name="title" size="40" />
+ </div>
+ <input type="submit" value="Edit" class="btn btn-default"/>
+ </div>
+ </div>
+ </div>
+</form>
diff --git a/templates/page.tmpl b/templates/page.tmpl
index 14d48d9..49b536d 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -124,13 +124,12 @@
<!-- -->
<!-- FOOTER -->
+ <TMPL_IF TAGS>
+ <p><TMPL_LOOP TAGS>
+ <span class="label label-default"><TMPL_VAR LINK></span>
+ </TMPL_LOOP></p>
+ </TMPL_IF>
<p>
- <TMPL_IF TAGS>
- Tags:
- <TMPL_LOOP TAGS>
- <TMPL_VAR LINK>
- </TMPL_LOOP>
- </TMPL_IF>
<TMPL_IF MTIME>
<span class="glyphicon glyphicon-calendar"></span> Last modified <em><TMPL_VAR MTIME></em>
</TMPL_IF>