Mercurial > wikked
view static/tpl/special-changes.html @ 126:9079fb01abb8
Improved wiki history page:
- Collapsable list of pages when there's more than one.
- Added a `limit` parameter to the API.
- Better code for special pages' views and models.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 24 Nov 2013 14:14:32 -0800 |
parents | 6c261cb94631 |
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>