annotate MoinMoin/templates/global_history.html @ 2835:f5b310b4dcd1

merge
author RogerHaase <haaserd@gmail.com>
date Sun, 19 Oct 2014 08:08:00 -0700
parents 2fd94be4b50c caf95e12acbb
children 40fd6fac76f8
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">
1117
f2d8c602dbb6 Improved table style to be more consistent. Fixes #13.
Julian Brost <julian.brost@googlemail.com>
parents: 918
diff changeset
25 <h2>{{ day }}</h2>
f2d8c602dbb6 Improved table style to be more consistent. Fixes #13.
Julian Brost <julian.brost@googlemail.com>
parents: 918
diff changeset
26 {% if user.valid %}
2761
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
27 <a class="bookmark-link btn btn-primary" 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">
2701
8d8a01710ca8 Improved Global History view in basic theme
Ajitesh Gupta <ajgupta93@gmail.com>
parents: 2685
diff changeset
31 <table class="zebra table table-hover">
2761
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
32 {% for rev in revs %}
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>
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
35 <td class="moin-action col-md-1">
2832
caf95e12acbb fix #466 Revert icon missing on modernized theme
RogerHaase <haaserd@gmail.com>
parents: 2761
diff changeset
36 <i title="{{ meta.action|title }}" class="{{ awesome_class[meta.action] }}"></span>
2761
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
37 </td>
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
38 <td class="moin-history-links col-md-1">
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
39 <a href="{{ url_for('frontend.history', item_name=rev.fqname, bookmark=bookmark_time) }}">HIST</a>
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
40 {% if bookmark_time -%}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
41 <a href="{{ url_for('frontend.diff', item_name=rev.fqname, bookmark=bookmark_time) }}">DIFF</a>
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
42 {%- endif %}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
43 </td>
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
44 <td class="moin-history-time col-md-1">{{ meta.mtime|timeformat }}</td>
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
45 <td class="moin-history-item col-md-7">
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
46 <a class="{{ meta.contenttype|contenttype_to_class }}" href="{{ url_for('frontend.show_item', item_name=rev.fqname) }}" title="{{ meta.contenttype }}">
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
47 {% if meta.name %}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
48 {{ meta.name|join(' | ') }}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
49 {% elif meta.summary %}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
50 {{ meta.summary }}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
51 {% else %}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
52 {{ rev.fqname|shorten_fqname }}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
53 {% endif %}
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
54 </a>
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
55 </td>
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
56 </tr>
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
57 {% endfor %}
454
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
58 </table>
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
59 </div>
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
60 </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
61 {% 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
62 {% if bookmark_time %}
2761
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
63 <div class="moin-history-container">
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
64 <div class="moin-history-container-header">
31628ac3ec21 mass correction of indentation on many templates
RogerHaase <haaserd@gmail.com>
parents: 2753
diff changeset
65 <h2>{{ bookmark_time|datetimeformat }}</h2>
2826
2fd94be4b50c global history: use same colourful style for delete bookmark as for set bookmark, just red
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 2761
diff changeset
66 <a class="bookmark-link btn btn-danger" 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
67 </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
68 </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
69 {% endif %}
454
b07dfe4ceb8d Grouping of global history done on the date basis.
Akash Sinha <akash2607@gmail.com>
parents: 216
diff changeset
70 </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
71 {% endblock %}