view static/tpl/special-changes.html @ 81:05d0a7cd85e8

Fixed site-wide history page. TODO: Add ability to show diffs.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 27 Feb 2013 22:55:11 -0800
parents 8250c977bc50
children b03f083c3a29
line wrap: on
line source

<article class="row">
    <div class="page special span12">
        <h1>Wiki History</h1>
        <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="/#/read/{{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>
    </div>
</article>