Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(62)

Delta Between Two Patch Sets: MoinMoin/themes/modernized/templates/global_history.html

Issue 245560043: Changes in User Setting and common.js to support highlighting of current links in menu
Left Patch Set: Fixed few HTML validation warnings due to 'role' attribute Created 8 years, 9 months ago
Right Patch Set: Fixed the missing <div> error in global_history.html (HTML Validation) Created 8 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 {% extends theme("layout.html") %} 1 {% extends theme("layout.html") %}
2 {% import "utils.html" as utils %} 2 {% import "utils.html" as utils %}
3 {# map meta.action to font awesome classes #} 3 {# map meta.action to font awesome classes #}
4 {% set awesome_class = { 4 {% set awesome_class = {
5 'REVERT': 'fa fa-undo', 5 'REVERT': 'fa fa-undo',
6 'SAVE': 'fa fa-save', 6 'SAVE': 'fa fa-save',
7 'RENAME': 'fa fa-pencil-square-o', 7 'RENAME': 'fa fa-pencil-square-o',
8 'TRASH': 'fa fa-trash-o', 8 'TRASH': 'fa fa-trash-o',
9 } %} 9 } %}
10 10
11 {% block head %} 11 {% block head %}
12 {{ super() }} 12 {{ super() }}
13 <link rel="alternate" title="Global History" href="{{ url_for('feed.atom') } }" type="application/atom+xml" /> 13 <link rel="alternate" title="Global History" href="{{ url_for('feed.atom') } }" type="application/atom+xml" />
14 {% endblock %} 14 {% endblock %}
15 {% block content %} 15 {% block content %}
16 <div class="container"> 16 <div class="container">
17 <h1>{{ _("Global History") }}</h1> 17 <h1>{{ _("Global History") }}</h1>
18 <br> 18 <br>
19 {% for day, revs in history %} 19 {% for day, revs in history %}
20 {% set latest_timestamp = revs[0].meta['mtime'] %} 20 {% set latest_timestamp = revs[0].meta['mtime'] %}
21 <div class="panel panel-primary"> 21 <div class="panel panel-primary">
22 <div class="panel-heading"> 22 <div class="panel-heading">
23 <div class="panel-title">{{ day }} 23 <div class="panel-title">{{ day }}
24 {% if user.valid %} 24 {% if user.valid %}
25 <a class="set-bookmark-btn btn btn-success" href="{{ url_for('frontend.bookmark', time=latest_timestamp+1) }}">{{ _("Set bookmark") }}</a> 25 <a class="set-bookmark-btn btn btn-success" href="{{ url_for('frontend.bookmark', time=latest_timestamp+1) }}">{{ _("Set bookmark") }}</a>
26 {% endif %}</div> 26 {% endif %}
27 </div> 27 </div>
28 </div>···
28 <div class="history-panel panel-body"> 29 <div class="history-panel panel-body">
29 <table class="table history-table table-hover"> 30 <table class="table history-table table-hover">
30 {% for rev in revs %} 31 {% for rev in revs %}
31 {% set meta = rev.meta %} 32 {% set meta = rev.meta %}
32 33
33 <tbody> 34 <tbody>
34 <tr> 35 <tr>
35 <td class="col-md-1"><span title="{{ met a.action|title }}" class="{{ awesome_class[meta.action] }}"></span></td> 36 <td class="col-md-1"><span title="{{ met a.action|title }}" class="{{ awesome_class[meta.action] }}"></span></td>
36 <td class="col-md-1"><a href="{{ url_for ('frontend.history', item_name=rev.fqname, bookmark=bookmark_time) }}">HIST</a> 37 <td class="col-md-1"><a href="{{ url_for ('frontend.history', item_name=rev.fqname, bookmark=bookmark_time) }}">HIST</a>
37 {% if bookmark_time -%} 38 {% if bookmark_time -%}
38 <a href="{{ url_for('frontend.diff', item_name=rev.fqname, bookmark=bookmark_time) }}">DIFF</a> 39 <a href="{{ url_for('frontend.diff', item_name=rev.fqname, bookmark=bookmark_time) }}">DIFF</a>
39 {%- endif %}</td> 40 {%- endif %}</td>
40 <td class="col-md-2">{{ meta.mtime|timef ormat }}</td> 41 <td class="col-md-2">{{ meta.mtime|timef ormat }}</td>
41 <td class="col-md-8"><a class="{{ meta.c ontenttype|contenttype_to_class }}" href="{{ url_for('frontend.show_item', item_ name=rev.fqname) }}" title="{{ meta.contenttype }}"> 42 <td class="col-md-8"><a class="{{ meta.c ontenttype|contenttype_to_class }}" href="{{ url_for('frontend.show_item', item_ name=rev.fqname) }}" title="{{ meta.contenttype }}">
42 {% if meta.name %} 43 {% if meta.name %}
43 {{ meta.name|join(' | ') }} 44 {{ meta.name|join(' | ') }}
44 {% elif meta.summary %} 45 {% elif meta.summary %}
45 {{ meta.summary }} 46 {{ meta.summary }}
46 {% else %} 47 {% else %}
47 {{ rev.fqname|shorten_fqname }} 48 {{ rev.fqname|shorten_fqname }}
48 {% endif %} 49 {% endif %}
49 </a></td> 50 </a></td>
50 <td class="col-md-7"></td> 51 <td class="col-md-7"></td>
51 </tr> 52 </tr>
52 {% endfor %} 53 {% endfor %}
53 </tbody> 54 </tbody>
54 55
55 </table> 56 </table>
56 </div> 57 </div>
58 </div>····
57 {% endfor %} 59 {% endfor %}
58 {% if bookmark_time %} 60 {% if bookmark_time %}
59 <div class="panel panel-primary"> 61 <div class="panel panel-primary">
60 <div class="panel-heading"> 62 <div class="panel-heading">
61 <div class="panel-tittle"> 63 <div class="panel-tittle">
62 {{ bookmark_time|datetimeformat }} 64 {{ bookmark_time|datetimeformat }}
63 <a class="del-bookmark-btn btn btn-danger" href= "{{ url_for('frontend.bookmark', time='del') }}">{{ _("Delete bookmark") }}</a> 65 <a class="del-bookmark-btn btn btn-danger" href= "{{ url_for('frontend.bookmark', time='del') }}">{{ _("Delete bookmark") }}</a>
64 </div> 66 </div>
65 </div> 67 </div>
66 </div> 68 </div>
67 {% endif %} 69 {% endif %}
68 </div> 70 </div>
69 {% endblock %} 71 {% endblock %}
LEFTRIGHT
« no previous file | no next file » | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b