view static/tpl/read-page.html @ 110:827e236aa7c6

Various front-end fixes: - Handle absolute URLs correctly. - Show the state warning only after the page has rendered.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 14 Nov 2013 15:21:48 -0800
parents 58a1a7baca25
children 74eb145eb839
line wrap: on
line source

<article>
    {{#ifnot meta.notitle}}
    <header>
        <h1>{{meta.title}}</h1>
        {{#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/{{redirects_to}}">{{redirects_to}}</a></small>
        {{/if}}
    </header>
    {{/ifnot}}
    <section>
        {{content}}
    </section>
    {{#if meta.category}}
    <footer>
        {{#each meta.category}}
        {{#ifeq @index to=0}}Categories: {{else}} | {{/ifeq}}
        <span><a href="/#/category/{{url}}">{{name}}</a></span>
        {{/each}}
    </footer>
    {{/if}}
</article>