annotate MoinMoin/templates/global_history.html @ 1364:582e7109a8c1

mass update - delete trailing spaces and/or add blank line to end of file
author Roger Haase <crosseyedpenguin@yahoo.com>
date Wed, 06 Jun 2012 15:03:07 -0700
parents f2d8c602dbb6
children 4ac437141bbe
rev   line source
0
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
1 {% extends theme("layout.html") %}
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
2 {% import "utils.html" as utils %}
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
3
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
4 {% block head %}
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
5 {{ super() }}
918
764f209d1eae simplify global history (and make it faster), bookmark changes for diff and history
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 905
diff changeset
6 <link rel="alternate" title="Global History" href="{{ url_for('feed.atom') }}" type="application/atom+xml" />
0
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
7 {% endblock %}
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
8
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
9 {% block content %}
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
10 <h1>{{ _("Global History") }}</h1>
468
511a2a2e9950 paging of history results, currently without the option of setting count per page
Akash Sinha <akash2607@gmail.com>
parents: 465
diff changeset
11 <div class='moin-clr'></div>
454
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
12 <div id="moin-global-history">
918
764f209d1eae simplify global history (and make it faster), bookmark changes for diff and history
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 905
diff changeset
13 {% for day, revs in history %}
764f209d1eae simplify global history (and make it faster), bookmark changes for diff and history
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 905
diff changeset
14 {% set latest_timestamp = revs[0].meta['mtime'] %}
1364
582e7109a8c1 mass update - delete trailing spaces and/or add blank line to end of file
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1117
diff changeset
15 <div class="moin-history-container">
465
3076415fdaba Bookmark functionality added for the global history results
Akash Sinha <akash2607@gmail.com>
parents: 464
diff changeset
16 <div class="moin-history-container-header">
1117
f2d8c602dbb6 Improved table style to be more consistent. Fixes #13.
Julian Brost <julian.brost@googlemail.com>
parents: 918
diff changeset
17 <h2>{{ day }}</h2>
f2d8c602dbb6 Improved table style to be more consistent. Fixes #13.
Julian Brost <julian.brost@googlemail.com>
parents: 918
diff changeset
18 {% if user.valid %}
f2d8c602dbb6 Improved table style to be more consistent. Fixes #13.
Julian Brost <julian.brost@googlemail.com>
parents: 918
diff changeset
19 <a class="bookmark-link" href="{{ url_for('frontend.bookmark', time=latest_timestamp+1) }}">{{ _("Set bookmark") }}</a>
f2d8c602dbb6 Improved table style to be more consistent. Fixes #13.
Julian Brost <julian.brost@googlemail.com>
parents: 918
diff changeset
20 {% endif %}
465
3076415fdaba Bookmark functionality added for the global history results
Akash Sinha <akash2607@gmail.com>
parents: 464
diff changeset
21 </div>
454
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
22 <div class="moin-history-container-body">
1117
f2d8c602dbb6 Improved table style to be more consistent. Fixes #13.
Julian Brost <julian.brost@googlemail.com>
parents: 918
diff changeset
23 <table class="zebra">
457
f1f88b7b17fa some variable names modified.
Akash Sinha <akash2607@gmail.com>
parents: 454
diff changeset
24 {% for rev in revs %}
918
764f209d1eae simplify global history (and make it faster), bookmark changes for diff and history
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 905
diff changeset
25 {% set meta = rev.meta %}
464
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
26 <tr>
918
764f209d1eae simplify global history (and make it faster), bookmark changes for diff and history
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 905
diff changeset
27 <td class="moin-action">
764f209d1eae simplify global history (and make it faster), bookmark changes for diff and history
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 905
diff changeset
28 <span class="moin-history-{{ meta.action|lower }}"></span>
473
b33a2dca5e8f diff link added on global history page, to view diff between latest revision and first revision
Akash Sinha <akash2607@gmail.com>
parents: 470
diff changeset
29 </td>
464
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
30 <td class="moin-history-links">
918
764f209d1eae simplify global history (and make it faster), bookmark changes for diff and history
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 905
diff changeset
31 <a href="{{ url_for('frontend.history', item_name=meta.name, bookmark=bookmark_time) }}">HIST</a>
764f209d1eae simplify global history (and make it faster), bookmark changes for diff and history
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 905
diff changeset
32 {% if bookmark_time -%}
764f209d1eae simplify global history (and make it faster), bookmark changes for diff and history
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 905
diff changeset
33 <a href="{{ url_for('frontend.diff', item_name=meta.name, bookmark=bookmark_time) }}">DIFF</a>
764f209d1eae simplify global history (and make it faster), bookmark changes for diff and history
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 905
diff changeset
34 {%- endif %}
464
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
35 </td>
918
764f209d1eae simplify global history (and make it faster), bookmark changes for diff and history
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 905
diff changeset
36 <td class="moin-history-time">{{ meta.mtime|timeformat }}</td>
764f209d1eae simplify global history (and make it faster), bookmark changes for diff and history
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 905
diff changeset
37 <td class="moin-history-item"><a class="{{ meta.contenttype|contenttype_to_class }}" href="{{ url_for('frontend.show_item', item_name=meta.name) }}" title="{{ meta.contenttype }}">{{ meta.name }}</a></td>
464
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
38 </tr>
454
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
39 {% endfor %}
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
40 </table>
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
41 </div>
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
42 </div>
0
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
43 {% endfor %}
918
764f209d1eae simplify global history (and make it faster), bookmark changes for diff and history
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 905
diff changeset
44 {% if bookmark_time %}
1364
582e7109a8c1 mass update - delete trailing spaces and/or add blank line to end of file
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1117
diff changeset
45 <div class="moin-history-container">
771
e5b51d4304c8 global history: render the bookmark in same way as the day headers
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 770
diff changeset
46 <div class="moin-history-container-header">
e5b51d4304c8 global history: render the bookmark in same way as the day headers
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 770
diff changeset
47 <span>
e5b51d4304c8 global history: render the bookmark in same way as the day headers
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 770
diff changeset
48 <h2>{{ bookmark_time|datetimeformat }}</h2>
e5b51d4304c8 global history: render the bookmark in same way as the day headers
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 770
diff changeset
49 <a href="{{ url_for('frontend.bookmark', time='del') }}">{{ _("Delete bookmark") }}</a>
e5b51d4304c8 global history: render the bookmark in same way as the day headers
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 770
diff changeset
50 </span>
e5b51d4304c8 global history: render the bookmark in same way as the day headers
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 770
diff changeset
51 </div>
e5b51d4304c8 global history: render the bookmark in same way as the day headers
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 770
diff changeset
52 </div>
e5b51d4304c8 global history: render the bookmark in same way as the day headers
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 770
diff changeset
53 {% endif %}
454
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
54 </div>
0
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
55 {% endblock %}
1364
582e7109a8c1 mass update - delete trailing spaces and/or add blank line to end of file
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1117
diff changeset
56