Left: | ||
Right: |
OLD | NEW |
---|---|
1 {% import "forms.html" as forms %} | 1 {% import "forms.html" as forms %} |
2 {% extends theme("layout.html") %} | 2 {% extends theme("layout.html") %} |
3 | 3 |
4 {% macro render_meta() %} | 4 {% macro render_meta() %} |
5 {% for e in [ | 5 {% for e in [ |
6 'effort', | 6 'effort', |
7 'difficulty', | 7 'difficulty', |
8 'severity', | 8 'severity', |
9 'priority', | 9 'priority', |
10 'tags', | 10 'tags', |
(...skipping 20 matching lines...) Expand all Loading... | |
31 {% macro render_backref() %} | 31 {% macro render_backref() %} |
32 {% for e in [ | 32 {% for e in [ |
33 'supersedes', | 33 'supersedes', |
34 'required_by', | 34 'required_by', |
35 'subscribers', | 35 'subscribers', |
36 ] %} | 36 ] %} |
37 {{ forms.render(form['backrefs'][e]) }} | 37 {{ forms.render(form['backrefs'][e]) }} |
38 {% endfor %} | 38 {% endfor %} |
39 {% endmacro %} | 39 {% endmacro %} |
40 | 40 |
41 | |
42 {% macro render_comment(comment) %} | |
43 <div class="comments"> | |
44 {% set comment_number = 1 %} | |
45 {% for comment in comments %} | |
46 <div class="comment-content"> | |
47 <dl id="{{ comment.meta['itemid'] }}"> | |
48 <p> | |
49 <b>comment {{ comment_number }}:</b> | |
50 {% if comment.meta['reply_to'] %} | |
51 <code>In reply to <a class="jumper" href="#{{ co mment.meta['reply_to'] }}">{{ comment.meta['reply_to'][:4] }}</a></code> | |
52 {% endif %} | |
53 </p> | |
54 <p>{{ Markup((comment.meta['content'])) }}</p> | |
55 <p> | |
56 <a href="#" class="reply" reply_to={{ comment.meta[' itemid'] }} refers_to={{ comment.meta['refers_to'] }}>reply</a> | |
57 </p> | |
58 <p class="moin-ticket-subtext"> | |
59 <a class="jumper" href="#{{ comment.meta['itemid'] }}">{ { comment.meta['itemid'][:4] }}</a> | |
60 posted by {{ comment.meta['author'] }} on {{ comment .meta['mtime'] }} | |
vipul
2015/08/02 20:17:37
{{ comment.meta['mtime'] }} renders int object but
Thomas.J.Waldmann
2015/08/11 15:41:18
not sure why you see different behaviour, but the
| |
61 </p> | |
62 </dl> | |
63 {% set comment_number = comment_number + 1 %} | |
64 </div> | |
65 {% endfor %} | |
66 </div> | |
67 {% endmacro %} | |
68 | |
41 {% macro subscribe() %} | 69 {% macro subscribe() %} |
42 {% if user.valid and exists %} | 70 {% if user.valid and exists %} |
43 <a href="{{ url_for('frontend.subscribe_item', item_name=item.fqname) }} " class="moin-button" rel="nofollow" title="Switch notifications about item chan ges on or off"> | 71 <a href="{{ url_for('frontend.subscribe_item', item_name=item.fqname) }} " class="moin-button" rel="nofollow" title="Switch notifications about item chan ges on or off"> |
44 <i class="fa fa-envelope fa-fw"></i> | 72 <i class="fa fa-envelope fa-fw"></i> |
45 {%- if user.is_subscribed_to(item) %} | 73 {%- if user.is_subscribed_to(item) %} |
46 {{ _('Unsubscribe') }} | 74 {{ _('Unsubscribe') }} |
47 {%- else %} | 75 {%- else %} |
48 {{ _('Subscribe') }} | 76 {{ _('Subscribe') }} |
49 {%- endif %} | 77 {%- endif %} |
50 </a> | 78 </a> |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
128 {% endblock %} | 156 {% endblock %} |
129 {{ gen.form.close() }} | 157 {{ gen.form.close() }} |
130 </div> | 158 </div> |
131 {% endblock %} | 159 {% endblock %} |
132 | 160 |
133 {% block footer_itemviews %} | 161 {% block footer_itemviews %} |
134 {{ itemviews() }} | 162 {{ itemviews() }} |
135 {% endblock %} | 163 {% endblock %} |
136 | 164 |
137 {% block body_scripts %} | 165 {% block body_scripts %} |
166 {{ super() }} | |
138 <script src="{{ url_for('serve.files', name='jquery', filename='jquery.min.j s') }}"></script> | 167 <script src="{{ url_for('serve.files', name='jquery', filename='jquery.min.j s') }}"></script> |
139 <script src="{{ url_for('static', filename='js/search.js') }}"></script> | 168 <script src="{{ url_for('static', filename='js/search.js') }}"></script> |
169 <script src="{{ url_for('static', filename='js/tickets.js') }}"></script> | |
140 {% endblock %} | 170 {% endblock %} |
OLD | NEW |