annotate MoinMoin/templates/global_history.html @ 2944:afe523052a7f

rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
author RogerHaase <haaserd@gmail.com>
date Sun, 10 May 2015 13:51:39 -0700
parents 40fd6fac76f8
children 10423855df46
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
2832
caf95e12acbb fix #466 Revert icon missing on modernized theme
RogerHaase <haaserd@gmail.com>
parents: 2761
diff changeset
4 {# map meta.action to font awesome classes #}
caf95e12acbb fix #466 Revert icon missing on modernized theme
RogerHaase <haaserd@gmail.com>
parents: 2761
diff changeset
5 {% set awesome_class = {
caf95e12acbb fix #466 Revert icon missing on modernized theme
RogerHaase <haaserd@gmail.com>
parents: 2761
diff changeset
6 'REVERT': 'fa fa-undo',
caf95e12acbb fix #466 Revert icon missing on modernized theme
RogerHaase <haaserd@gmail.com>
parents: 2761
diff changeset
7 'SAVE': 'fa fa-save',
caf95e12acbb fix #466 Revert icon missing on modernized theme
RogerHaase <haaserd@gmail.com>
parents: 2761
diff changeset
8 'RENAME': 'fa fa-pencil-square-o',
caf95e12acbb fix #466 Revert icon missing on modernized theme
RogerHaase <haaserd@gmail.com>
parents: 2761
diff changeset
9 'TRASH': 'fa fa-trash-o',
caf95e12acbb fix #466 Revert icon missing on modernized theme
RogerHaase <haaserd@gmail.com>
parents: 2761
diff changeset
10 } %}
caf95e12acbb fix #466 Revert icon missing on modernized theme
RogerHaase <haaserd@gmail.com>
parents: 2761
diff changeset
11
0
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
12 {% block head %}
2761
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
13 {{ super() }}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
14 <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
15 {% endblock %}
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
16
5568cf133caf create moin/2.0 repo, drop all history (see notes below)
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents:
diff changeset
17 {% block content %}
2761
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
18 <h1>{{ _("Global History") }}</h1>
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
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">
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
21 {% 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
22 {% 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
23 <div class="moin-history-container">
465
3076415fdaba Bookmark functionality added for the global history results
Akash Sinha <akash2607@gmail.com>
parents: 464
diff changeset
24 <div class="moin-history-container-header">
2944
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
25 <span class="moin-history-date">{{ day }}</span>
1117
f2d8c602dbb6 Improved table style to be more consistent. Fixes #13.
Julian Brost <julian.brost@googlemail.com>
parents: 918
diff changeset
26 {% if user.valid %}
2944
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
27 <a class="moin-bookmark-link" href="{{ url_for('frontend.bookmark', time=latest_timestamp+1) }}">{{ _("Set bookmark") }}</a>
1117
f2d8c602dbb6 Improved table style to be more consistent. Fixes #13.
Julian Brost <julian.brost@googlemail.com>
parents: 918
diff changeset
28 {% endif %}
465
3076415fdaba Bookmark functionality added for the global history results
Akash Sinha <akash2607@gmail.com>
parents: 464
diff changeset
29 </div>
454
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
30 <div class="moin-history-container-body">
2944
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
31 <table class="zebra">
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
32 {% for rev in revs|sort(attribute='fqname') %}
2761
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
33 {% set meta = rev.meta %}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
34 <tr>
2944
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
35 <td class="moin-history-item moin-wordbreak">
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
36 <a class="{{ meta.contenttype|contenttype_to_class }}" href="{{ url_for('frontend.show_item', item_name=rev.fqname) }}"
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
37 title="{{ meta.contenttype|shorten_ctype }}">
2761
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
38 {% if meta.name %}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
39 {{ meta.name|join(' | ') }}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
40 {% elif meta.summary %}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
41 {{ meta.summary }}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
42 {% else %}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
43 {{ rev.fqname|shorten_fqname }}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
44 {% endif %}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
45 </a>
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
46 </td>
2944
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
47 <td class="moin-wordbreak moin-history-editorinfo">{{ utils.editor_info(rev.meta) }}</td>
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
48 <td class="moin-history-time">{{ meta.mtime|time_hh_mm }}</td>
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
49 <td class="moin-history-action">
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
50 <span title="{{ meta.action|title }}" class="{{ awesome_class[meta.action] }}"></span>
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
51 </td>
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
52 <td class="moin-history-links">
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
53 <a href="{{ url_for('frontend.history', item_name=rev.fqname, bookmark=bookmark_time) }}">
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
54 <span class="fa fa-clock-o" title="{{ _('History') }}"></span>
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
55 </a>
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
56 </td>
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
57 {% if bookmark_time -%}
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
58 <td class="moin-history-links">
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
59 <a href="{{ url_for('frontend.diff', item_name=rev.fqname, bookmark=bookmark_time) }}">
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
60 <span class="fa fa-copy" title="{{ _('Diff') }}"></span>
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
61 </a>
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
62 </td>
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
63 {%- endif %}
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
64 <td class="moin-wordbreak moin-history-comment">{{ rev.meta['comment'] }}</td>
2761
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
65 </tr>
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
66 {% endfor %}
454
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
67 </table>
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
68 </div>
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
69 </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
70 {% 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
71 {% if bookmark_time %}
2761
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
72 <div class="moin-history-container">
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
73 <div class="moin-history-container-header">
2944
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
74 <span class="moin-history-date">{{ bookmark_time|datetimeformat }}</span>
afe523052a7f rework global history styling for modernized and basic themes, add user and comment fields, partial fix #471
RogerHaase <haaserd@gmail.com>
parents: 2838
diff changeset
75 <a class="moin-bookmark-link" href="{{ url_for('frontend.bookmark', time='del') }}">{{ _("Delete bookmark") }}</a>
2761
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
76 </div>
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
77 </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
78 {% endif %}
454
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
79 </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
80 {% endblock %}