diff static/tpl/read-page.html @ 89:b03f083c3a29

Lots of HTML/JS/Less changes: - more semantic and simple markup, no useless grid. - simpler colour schemes (TODO: colours are ugly, tune them). - better error handling in Backbone views. - fixed some view bugs. - changed new/modified page alert to a ribbon with tooltip.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 06 Apr 2013 18:07:31 -0700
parents 8250c977bc50
children 58a1a7baca25
line wrap: on
line diff
--- a/static/tpl/read-page.html	Fri Apr 05 08:08:12 2013 -0700
+++ b/static/tpl/read-page.html	Sat Apr 06 18:07:31 2013 -0700
@@ -1,14 +1,23 @@
-<article class="row">
-    <div class="page span12">
-        {{#ifnot meta.notitle}}
+<article>
+    {{#ifnot meta.notitle}}
+    <header>
         <h1>{{meta.title}}</h1>
-        {{/ifnot}}
         {{#if redirected_from}}
         <small>Redirected from <a href="/#/read/{{redirected_from}}?no_redirect">{{redirected_from}}</a></small>
         {{/if}}
         {{#if meta.redirect}}
         <small>Redirects to <a href="/#/read/{{meta.redirect}}">{{meta.redirect}}</a></small>
         {{/if}}
+    </header>
+    {{/ifnot}}
+    <section>
         {{content}}
-    </div>
+    </section>
+    {{#if meta.category}}
+    <footer>
+        {{#each meta.category}}
+        <span><a href="/#/special/category/">{{.}}</a></span>
+        {{/each}}
+    </footer>
+    {{/if}}
 </article>