comparison MoinMoin/templates/global_history.html @ 2701:8d8a01710ca8

Improved Global History view in basic theme Added bootstrap tables, buttons and icons in the Global History view in order to make it look better
author Ajitesh Gupta <ajgupta93@gmail.com>
date Thu, 07 Aug 2014 21:46:46 +0530
parents 19747e4214f4
children 37cf0c227a6e
comparison
equal deleted inserted replaced
2700:842fc45e8060 2701:8d8a01710ca8
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" 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"> 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"> 27 <td class="moin-action col-md-1">
28 <span class="moin-history-{{ meta.action|lower }}"></span> 28 <span class="moin-history-{{ meta.action|lower }}"></span>
29 </td> 29 </td>
30 <td class="moin-history-links"> 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">{{ meta.mtime|timeformat }}</td> 36 <td class="moin-history-time col-md-1">{{ meta.mtime|timeformat }}</td>
37 <td class="moin-history-item"> 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 }}