view static/tpl/special-changes.html @ 113:74eb145eb839

Fixed some problems with URLs in the front-end.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 16 Nov 2013 08:36:02 -0800
parents b03f083c3a29
children 6c261cb94631
line wrap: on
line source

<article>
    <header>
        <h1>Wiki History</h1>
    </header>
    <section>
        <p>Here are the recent changes on this wiki.</p>
        <form>
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th>Revision</th>
                        <th>Information</th>
                    </tr>
                </thead>
                <tbody>
                    {{#eachr history}}
                    <tr>
                        <td>{{rev_name}}</td>
                        <td>
                            <dl class="dl-horizontal">
                                <dt>Date</dt>
                                <dd>{{date_from_now timestamp}}</dd>
                                <dt>Author</dt>
                                <dd>{{author}}</dd>
                                <dt>Pages</dt>
                                <dd>
                                    <ul class="unstyled">
                                        {{#each changes}}
                                        <li>
                                            <a href="{{get_read_url url}}">{{url}}</a>
                                            {{#if is_edit}}(edit) {{/if}}
                                            {{#if is_add}}(added) {{/if}}
                                            {{#if is_delete}}(deleted) {{/if}}
                                        </li>
                                        {{/each}}
                                    </ul>
                                </dd>
                                <dt>Comment</dt>
                                <dd>{{description}}</dd>
                            </dl>
                        </td>
                    </tr>
                    {{/eachr}}
                </tbody>
            </table>
        </form>
    </section>
</article>