annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
1 <article class="row">
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
2 <div class="page special span12">
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
3 <h1>Wiki History</h1>
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
4 <p>Here are the recent changes on this wiki.</p>
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
5 <form>
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
6 <table class="table table-hover">
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
7 <thead>
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
8 <tr>
81
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
9 <th>Revision</th>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
10 <th>Information</th>
19
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
11 </tr>
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
12 </thead>
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
13 <tbody>
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
14 {{#eachr history}}
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
15 <tr>
81
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
16 <td>{{rev_name}}</td>
19
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
17 <td>
81
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
18 <dl class="dl-horizontal">
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
19 <dt>Date</dt>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
20 <dd>{{date_from_now timestamp}}</dd>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
21 <dt>Author</dt>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
22 <dd>{{author}}</dd>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
23 <dt>Pages</dt>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
24 <dd>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
25 <ul class="unstyled">
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
26 {{#each changes}}
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
27 <li>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
28 <a href="/#/read/{{url}}">{{url}}</a>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
29 {{#if is_edit}}(edit) {{/if}}
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
30 {{#if is_add}}(added) {{/if}}
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
31 {{#if is_delete}}(deleted) {{/if}}
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
32 </li>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
33 {{/each}}
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
34 </ul>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
35 </dd>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
36 <dt>Comment</dt>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
37 <dd>{{description}}</dd>
05d0a7cd85e8 Fixed site-wide history page.
Ludovic Chabant <ludovic@chabant.com>
parents: 60
diff changeset
38 </dl>
19
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
39 </td>
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
40 </tr>
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
41 {{/eachr}}
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
42 </tbody>
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
43 </table>
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
44 </form>
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
45 </div>
884eb6c8edf0 Added "wiki history" special page:
Ludovic Chabant <ludovic@chabant.com>
parents:
diff changeset
46 </article>