annotate MoinMoin/templates/global_history.html @ 905:51475954290f storage-ng

rename all revno usages to revid (no numbers any more), remove update_item param todo: set meta and reduce revision script
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 30 Sep 2011 16:44:50 +0200
parents 42662a463f0b
children 764f209d1eae
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() }}
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
6 <link rel="alternate" title="Global changes" href="{{ url_for('feed.atom') }}" type="application/atom+xml" />
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 %}
468
511a2a2e9950 paging of history results, currently without the option of setting count per page
Akash Sinha <akash2607@gmail.com>
parents: 465
diff changeset
10 <div class='moin-offset-links'>
511a2a2e9950 paging of history results, currently without the option of setting count per page
Akash Sinha <akash2607@gmail.com>
parents: 465
diff changeset
11 {% if previous_offset >= 0 %}
511a2a2e9950 paging of history results, currently without the option of setting count per page
Akash Sinha <akash2607@gmail.com>
parents: 465
diff changeset
12 <a href="{{ url_for('frontend.global_history', offset=previous_offset) }}" title="{{ _("Previous") }}">&laquo;</a>
511a2a2e9950 paging of history results, currently without the option of setting count per page
Akash Sinha <akash2607@gmail.com>
parents: 465
diff changeset
13 {% endif %}
511a2a2e9950 paging of history results, currently without the option of setting count per page
Akash Sinha <akash2607@gmail.com>
parents: 465
diff changeset
14 {% if offset %}
511a2a2e9950 paging of history results, currently without the option of setting count per page
Akash Sinha <akash2607@gmail.com>
parents: 465
diff changeset
15 <a href="{{ url_for('frontend.global_history', offset=offset) }}" title="{{ _("Next") }}">&raquo;</a>
511a2a2e9950 paging of history results, currently without the option of setting count per page
Akash Sinha <akash2607@gmail.com>
parents: 465
diff changeset
16 {% endif %}
511a2a2e9950 paging of history results, currently without the option of setting count per page
Akash Sinha <akash2607@gmail.com>
parents: 465
diff changeset
17 </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
18 <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
19 <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
20 <div id="moin-global-history">
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
21 {% for rev_date, revs in history %}
465
3076415fdaba Bookmark functionality added for the global history results
Akash Sinha <akash2607@gmail.com>
parents: 464
diff changeset
22 {% set latest_rev = revs[0] %}
3076415fdaba Bookmark functionality added for the global history results
Akash Sinha <akash2607@gmail.com>
parents: 464
diff changeset
23 {% set latest_timestamp = latest_rev.timestamp %}
454
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
24 <div class="moin-history-container">
465
3076415fdaba Bookmark functionality added for the global history results
Akash Sinha <akash2607@gmail.com>
parents: 464
diff changeset
25 <div class="moin-history-container-header">
3076415fdaba Bookmark functionality added for the global history results
Akash Sinha <akash2607@gmail.com>
parents: 464
diff changeset
26 <span>
3076415fdaba Bookmark functionality added for the global history results
Akash Sinha <akash2607@gmail.com>
parents: 464
diff changeset
27 <h2>{{ rev_date }}</h2>
3076415fdaba Bookmark functionality added for the global history results
Akash Sinha <akash2607@gmail.com>
parents: 464
diff changeset
28 {% if user.valid %}
770
a4ec2c6f0bb7 history: do not yield Revision objects, but directly result documents from whoosh
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 476
diff changeset
29 <a class="bookmark-link" href="{{ url_for('frontend.bookmark', time=utctimestamp(latest_timestamp)) }}">{{ _("Set bookmark") }}</a>
465
3076415fdaba Bookmark functionality added for the global history results
Akash Sinha <akash2607@gmail.com>
parents: 464
diff changeset
30 {% endif %}
3076415fdaba Bookmark functionality added for the global history results
Akash Sinha <akash2607@gmail.com>
parents: 464
diff changeset
31 </span>
3076415fdaba Bookmark functionality added for the global history results
Akash Sinha <akash2607@gmail.com>
parents: 464
diff changeset
32 </div>
454
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
33 <div class="moin-history-container-body">
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
34 <table>
457
f1f88b7b17fa some variable names modified.
Akash Sinha <akash2607@gmail.com>
parents: 454
diff changeset
35 {% for rev in revs %}
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
36 <tr>
905
51475954290f rename all revno usages to revid (no numbers any more), remove update_item param
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 897
diff changeset
37 {% set item_latest_revid = rev.revids[0] %}
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
38 <td class="moin-action" title="{{ _("DIFF") }}">
905
51475954290f rename all revno usages to revid (no numbers any more), remove update_item param
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 897
diff changeset
39 <a href="{{ url_for('frontend.diff', item_name=rev.item_name, rev1=item_latest_revid, rev2=rev.revids[-1]) }}" class="moin-history-{{ rev.action|lower }}"> </a>
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
40 </td>
476
a716e61ae9c7 contenttype texts are replaced by icons in global history page, all icons are GPL licensed (picked from tango icons library).
Akash Sinha <akash2607@gmail.com>
parents: 473
diff changeset
41 <td class="moin-history-item"><a class="{{ rev.contenttype|contenttype_to_class }}" href="{{ url_for('frontend.show_item', item_name=rev.item_name) }}" title="{{ rev.contenttype }}">{{ rev.item_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
42 <td class="moin-history-time">{{ rev.timestamp|timeformat }}</td>
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
43 <td class="moin-history-links">
905
51475954290f rename all revno usages to revid (no numbers any more), remove update_item param
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 897
diff changeset
44 {% for revid in rev.revids %}
51475954290f rename all revno usages to revid (no numbers any more), remove update_item param
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 897
diff changeset
45 {% set position = rev.revids.index(revid) %}
897
42662a463f0b fix global_history view
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 771
diff changeset
46 {% if position > 0 %}
905
51475954290f rename all revno usages to revid (no numbers any more), remove update_item param
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 897
diff changeset
47 <a href="{{ url_for('frontend.diff', item_name=rev.item_name, rev1=revid, rev2=item_latest_revid) }}">[{{ position }}]</a>
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
48 {% else %}
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
49 <span>[0]</span>
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
50 {% endif %}
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
51 {% endfor %}
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
52 </td>
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
53 <td class="moin-wordbreak moin-history-editorinfo">
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
54 {% for info, position in rev.editors %}
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
55 <span class="moin-history-editortext">
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
56 {{ utils.show_editor_info(info) }}
897
42662a463f0b fix global_history view
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 771
diff changeset
57 {% if position %}
42662a463f0b fix global_history view
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 771
diff changeset
58 [{{ position }}]
42662a463f0b fix global_history view
Reimar Bauer <rb.proj AT googlemail DOT com>
parents: 771
diff changeset
59 {% 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
60 </span>
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
61 {% endfor %}
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
62 </td>
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
63 <td class="moin-wordbreak moin-history-comment">
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
64 {% for comment in rev.comments %}
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
65 <span>{{ comment }}</span>
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
66 {% endfor %}
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
67 </td>
58a29a7fd016 grouping of the global history results on item name and date basis (code cleaned)
Akash Sinha <akash2607@gmail.com>
parents: 460
diff changeset
68 </tr>
454
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
69 {% endfor %}
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
70 </table>
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
71 </div>
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
72 </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
73 {% endfor %}
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
74 {% if user.valid and bookmark_time %}
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
75 <div class="moin-history-container">
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
76 <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
77 <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
78 <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
79 <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
80 </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
81 </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
82 </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
83 {% endif %}
454
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
84 </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
85 {% endblock %}