view static/tpl/history-page.html @ 155:6cb5445e90b9

Disable browser auto-complete on the search field.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 25 Dec 2013 19:59:05 -0800
parents b03f083c3a29
children
line wrap: on
line source

<article>
    <header>
        <h1>{{meta.title}} <span class="decorator">History</span></h1>
    </header>
    <section>
        {{#if history}}
        <p>Here's the revision log for <a href="{{url_read}}">{{meta.title}}</a>.</p>
        <form id="diff-page">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <th>Revision</th>
                        <th>Date</th>
                        <th>Author</th>
                        <th>Comment</th>
                        <th><button id="diff-revs" class="btn btn-primary">Show Diff.</button></th>
                    </tr>
                </thead>
                <tbody>
                    {{#eachr history}}
                    <tr>
                        <td><a href="{{../url_rev}}/{{rev_id}}">{{rev_name}}</a></td>
                        <td>{{date_from_now timestamp}}</td>
                        <td>{{author}}</td>
                        <td>{{description}}</td>
                        <td>
                            <input type="radio" name="rev1" value="{{rev_id}}" {{#ifeq @index to=0 }}checked="true" {{/ifeq}}/>
                            <input type="radio" name="rev2" value="{{rev_id}}" {{#ifeq @index to=1 }}checked="true" {{/ifeq}}/>
                            <small><a href="{{../url_diffc}}/{{rev_id}}">with previous</a></small>
                        </td>
                    </tr>
                    {{/eachr}}
                </tbody>
            </table>
        </form>
        {{else}}
        <p><i class="icon-warning-sign large big"></i>
            This page has not been committed to the repository yet.
            <a href="{{url_edit}}">Edit it</a> to do that now.</p>
        {{/if}}
    </section>
</article>