comparison MoinMoin/templates/atom.html @ 2935:453a66b219ab

Fixes #503 Added time in item diff
author Aabhas Majumdar <majumdaraabhas@gmail.com>
date Sun, 08 Mar 2015 21:01:25 +0530
parents 4ac437141bbe
children
comparison
equal deleted inserted replaced
2934:e2b5a79a1e06 2935:453a66b219ab
1 {% import "utils.html" as utils %} 1 {% import "utils.html" as utils %}
2 {% macro show_meta(rev) %}
3 <div class="moin-diff-info moin-diff-info-rev-id">
4 <span class="moin-diff-info-caption">{{ _('Revision') }}:</span>
5 <span class="moin-diff-info-value">{{ rev.meta['revid'] | shorten_id }}</span>
6 </div>
7 <div class="moin-diff-info moin-diff-info-rev-size">
8 <span class="moin-diff-info-caption">{{ _('Size') }}:</span>
9 <span class="moin-diff-info-value">{{ rev.meta['size'] }}</span>
10 </div>
11 <div class="moin-diff-info moin-diff-info-rev-comment">
12 <span class="moin-diff-info-caption">{{ _('Comment') }}:</span>
13 <span class="moin-diff-info-value">{{ rev.meta['comment'] }}</span>
14 </div>
15 {% endmacro %}
16 2
17 {# A few style rules to ensure the content doesn't overflow #} 3 {# A few style rules to ensure the content doesn't overflow #}
18 {% macro atom_style() %} 4 {% macro atom_style() %}
19 <style type="text/css"> 5 <style type="text/css">
20 img { 6 img {
37 {{ content }} 23 {{ content }}
38 <br /> 24 <br />
39 <table class="moin-diff" cellpadding="10" width="100%"> 25 <table class="moin-diff" cellpadding="10" width="100%">
40 <tr> 26 <tr>
41 <td class="moin-diff-header" style="width: 100%;"> 27 <td class="moin-diff-header" style="width: 100%;">
42 <strong>{{ show_meta(rev) }}</strong> 28 <strong>{{ utils.show_meta(rev) }}</strong>
43 </td> 29 </td>
44 </tr> 30 </tr>
45 </table> 31 </table>
46 {{ atom_style() }} 32 {{ atom_style() }}
47 {%- elif get == 'binary' -%} 33 {%- elif get == 'binary' -%}
48 {{ content }} 34 {{ content }}
49 <br /> 35 <br />
50 <table class="moin-diff" cellpadding="10" width="100%"> 36 <table class="moin-diff" cellpadding="10" width="100%">
51 <tr> 37 <tr>
52 <td class="moin-diff-header" style="width: 50%;"> 38 <td class="moin-diff-header" style="width: 50%;">
53 <strong>{{ show_meta(oldrev) }}</strong> 39 <strong>{{ utils.show_meta(oldrev) }}</strong>
54 </td> 40 </td>
55 <td class="moin-diff-header" style="width: 50%;"> 41 <td class="moin-diff-header" style="width: 50%;">
56 <strong>{{ show_meta(newrev) }}</strong> 42 <strong>{{ utils.show_meta(newrev) }}</strong>
57 </td> 43 </td>
58 </tr> 44 </tr>
59 </table> 45 </table>
60 {{ atom_style() }} 46 {{ atom_style() }}
61 {%- endif -%} 47 {%- endif -%}