comparison MoinMoin/templates/global_history.html @ 2761:31628ac3ec21

mass correction of indentation on many templates
author RogerHaase <haaserd@gmail.com>
date Sun, 24 Aug 2014 08:39:32 -0700
parents 37cf0c227a6e
children 2fd94be4b50c caf95e12acbb
comparison
equal deleted inserted replaced
2760:2d7189275f1b 2761:31628ac3ec21
1 {% extends theme("layout.html") %} 1 {% extends theme("layout.html") %}
2 {% import "utils.html" as utils %} 2 {% import "utils.html" as utils %}
3 3
4 {% block head %} 4 {% block head %}
5 {{ super() }} 5 {{ super() }}
6 <link rel="alternate" title="Global History" href="{{ url_for('feed.atom') }}" type="application/atom+xml" /> 6 <link rel="alternate" title="Global History" href="{{ url_for('feed.atom') }}" type="application/atom+xml" />
7 {% endblock %} 7 {% endblock %}
8 8
9 {% block content %} 9 {% block content %}
10 <h1>{{ _("Global History") }}</h1> 10 <h1>{{ _("Global History") }}</h1>
11 <div class='moin-clr'></div> 11 <div class='moin-clr'></div>
12 <div id="moin-global-history"> 12 <div id="moin-global-history">
13 {% for day, revs in history %} 13 {% for day, revs in history %}
14 {% set latest_timestamp = revs[0].meta['mtime'] %} 14 {% set latest_timestamp = revs[0].meta['mtime'] %}
15 <div class="moin-history-container"> 15 <div class="moin-history-container">
16 <div class="moin-history-container-header"> 16 <div class="moin-history-container-header">
17 <h2>{{ day }}</h2> 17 <h2>{{ day }}</h2>
18 {% if user.valid %} 18 {% if user.valid %}
19 <a class="bookmark-link btn btn-primary" href="{{ url_for('frontend.bookmark', time=latest_timestamp+1) }}">{{ _("Set bookmark") }}</a> 19 <a class="bookmark-link btn btn-primary" href="{{ url_for('frontend.bookmark', time=latest_timestamp+1) }}">{{ _("Set bookmark") }}</a>
20 {% endif %} 20 {% endif %}
21 </div> 21 </div>
22 <div class="moin-history-container-body"> 22 <div class="moin-history-container-body">
23 <table class="zebra table table-hover"> 23 <table class="zebra table table-hover">
24 {% for rev in revs %} 24 {% for rev in revs %}
25 {% set meta = rev.meta %} 25 {% set meta = rev.meta %}
26 <tr> 26 <tr>
27 <td class="moin-action col-md-1"> 27 <td class="moin-action col-md-1">
28 <span title="{{ meta.action|title }}" class="moin-history-{{ meta.action|lower }}"></span> 28 <span title="{{ meta.action|title }}" class="moin-history-{{ meta.action|lower }}"></span>
29 </td> 29 </td>
30 <td class="moin-history-links col-md-1"> 30 <td class="moin-history-links col-md-1">
31 <a href="{{ url_for('frontend.history', item_name=rev.fqname, bookmark=bookmark_time) }}">HIST</a> 31 <a href="{{ url_for('frontend.history', item_name=rev.fqname, bookmark=bookmark_time) }}">HIST</a>
32 {% if bookmark_time -%} 32 {% if bookmark_time -%}
33 <a href="{{ url_for('frontend.diff', item_name=rev.fqname, bookmark=bookmark_time) }}">DIFF</a> 33 <a href="{{ url_for('frontend.diff', item_name=rev.fqname, bookmark=bookmark_time) }}">DIFF</a>
34 {%- endif %} 34 {%- endif %}
35 </td> 35 </td>
36 <td class="moin-history-time col-md-1">{{ meta.mtime|timeformat }}</td> 36 <td class="moin-history-time col-md-1">{{ meta.mtime|timeformat }}</td>
37 <td class="moin-history-item col-md-7"> 37 <td class="moin-history-item col-md-7">
38 <a class="{{ meta.contenttype|contenttype_to_class }}" href="{{ url_for('frontend.show_item', item_name=rev.fqname) }}" title="{{ meta.contenttype }}"> 38 <a class="{{ meta.contenttype|contenttype_to_class }}" href="{{ url_for('frontend.show_item', item_name=rev.fqname) }}" title="{{ meta.contenttype }}">
39 {% if meta.name %} 39 {% if meta.name %}
40 {{ meta.name|join(' | ') }} 40 {{ meta.name|join(' | ') }}
41 {% elif meta.summary %} 41 {% elif meta.summary %}
42 {{ meta.summary }} 42 {{ meta.summary }}
43 {% else %} 43 {% else %}
44 {{ rev.fqname|shorten_fqname }} 44 {{ rev.fqname|shorten_fqname }}
45 {% endif %} 45 {% endif %}
46 </a> 46 </a>
47 </td> 47 </td>
48 </tr> 48 </tr>
49 {% endfor %} 49 {% endfor %}
50 </table> 50 </table>
51 </div> 51 </div>
52 </div> 52 </div>
53 {% endfor %} 53 {% endfor %}
54 {% if bookmark_time %} 54 {% if bookmark_time %}
55 <div class="moin-history-container"> 55 <div class="moin-history-container">
56 <div class="moin-history-container-header"> 56 <div class="moin-history-container-header">
57 <h2>{{ bookmark_time|datetimeformat }}</h2> 57 <h2>{{ bookmark_time|datetimeformat }}</h2>
58 <a class="bookmark-link" href="{{ url_for('frontend.bookmark', time='del') }}">{{ _("Delete bookmark") }}</a> 58 <a class="bookmark-link" href="{{ url_for('frontend.bookmark', time='del') }}">{{ _("Delete bookmark") }}</a>
59 </div>
59 </div> 60 </div>
60 </div>
61 {% endif %} 61 {% endif %}
62 </div> 62 </div>
63 {% endblock %} 63 {% endblock %}