view static/tpl/special-changes.html @ 149:d29e2f337b00

Updated to Bootstrap 3.0.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 12 Dec 2013 21:54:04 -0800
parents 9079fb01abb8
children
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 history-list">
                <thead>
                    <tr>
                        <th>Revision</th>
                        <th>Information</th>
                    </tr>
                </thead>
                <tbody>
                    {{#eachr history}}
                    <tr class='history-entry'>
                        <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 ({{num_pages}})</dt>
                                <dd>
                                {{#if make_collapsable}}
                                    <button class="btn page-details-toggler" data-index="{{index}}">Show/Hide</button>
                                    <div class="page-details page-details-{{index}}">
                                {{/if}}
                                    <ul class="unstyled">
                                        {{#each changes}}
                                        <li>
                                            <a href="#/revision{{url}}/{{../rev_id}}">{{url}}</a>
                                            {{#if is_edit}}(edit) {{/if}}
                                            {{#if is_add}}(added) {{/if}}
                                            {{#if is_delete}}(deleted) {{/if}}
                                        </li>
                                        {{/each}}
                                    </ul>
                                {{#if make_collapsable}}
                                    </div>
                                {{/if}}
                                </dd>
                                <dt>Comment</dt>
                                <dd>{{description}}</dd>
                            </dl>
                        </td>
                    </tr>
                    {{/eachr}}
                </tbody>
            </table>
        </form>
    </section>
</article>