annotate MoinMoin/templates/atom.html @ 1397:4ac437141bbe

make file ends pep8 compliant (== exactly 1 LF at EOF)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 24 Jun 2012 16:14:45 +0200
parents 6cb48018d6aa
children 453a66b219ab
rev   line source
1365
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
1 {% import "utils.html" as utils %}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
2 {% macro show_meta(rev) %}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
3 <div class="moin-diff-info moin-diff-info-rev-id">
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
4 <span class="moin-diff-info-caption">{{ _('Revision') }}:</span>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
5 <span class="moin-diff-info-value">{{ rev.meta['revid'] | shorten_id }}</span>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
6 </div>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
7 <div class="moin-diff-info moin-diff-info-rev-size">
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
8 <span class="moin-diff-info-caption">{{ _('Size') }}:</span>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
9 <span class="moin-diff-info-value">{{ rev.meta['size'] }}</span>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
10 </div>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
11 <div class="moin-diff-info moin-diff-info-rev-comment">
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
12 <span class="moin-diff-info-caption">{{ _('Comment') }}:</span>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
13 <span class="moin-diff-info-value">{{ rev.meta['comment'] }}</span>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
14 </div>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
15 {% endmacro %}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
16
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
17 {# A few style rules to ensure the content doesn't overflow #}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
18 {% macro atom_style() %}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
19 <style type="text/css">
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
20 img {
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
21 max-width: 100%;
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
22 }
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
23 td {
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
24 padding-right: 10px;
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
25 }
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
26 table {
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
27 width: 100%;
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
28 }
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
29 </style>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
30 {% endmacro %}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
31
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
32 {%- if get == 'xml' -%}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
33 <?xml-stylesheet type="text/xsl" href="{{ theme_static('atom.xslt') }}"?>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
34 {%- elif get == 'comment_cont_merge' -%}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
35 <p style="font-size: 1.2em">…{{ comment }}</p> <br /> {{ content }}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
36 {%- elif get == 'first_revision' -%}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
37 {{ content }}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
38 <br />
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
39 <table class="moin-diff" cellpadding="10" width="100%">
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
40 <tr>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
41 <td class="moin-diff-header" style="width: 100%;">
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
42 <strong>{{ show_meta(rev) }}</strong>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
43 </td>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
44 </tr>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
45 </table>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
46 {{ atom_style() }}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
47 {%- elif get == 'binary' -%}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
48 {{ content }}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
49 <br />
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
50 <table class="moin-diff" cellpadding="10" width="100%">
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
51 <tr>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
52 <td class="moin-diff-header" style="width: 50%;">
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
53 <strong>{{ show_meta(oldrev) }}</strong>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
54 </td>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
55 <td class="moin-diff-header" style="width: 50%;">
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
56 <strong>{{ show_meta(newrev) }}</strong>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
57 </td>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
58 </tr>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
59 </table>
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
60 {{ atom_style() }}
6cb48018d6aa mass update part 2 - change DOS line endings to unix
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1214
diff changeset
61 {%- endif -%}