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

Delta Between Two Patch Sets: MoinMoin/templates/ticket/base.html

Issue 256840043: ticket comments
Left Patch Set: created indented comments/replies threads Created 8 years, 7 months ago
Right Patch Set: created indented comments/replies threads Created 8 years, 7 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 | « MoinMoin/templates/comments.html ('k') | MoinMoin/templates/ticket/modify.html » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 21 matching lines...) Expand all
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 41
42 {% macro print_comment(comment) %} 42 {% macro print_comment(comment) %}
Thomas.J.Waldmann 2015/08/18 16:07:19 maybe use render_comment rather. so in case someon
vipul 2015/08/19 06:18:33 yes you are right. I will update this
43 <div class="comment-content" style="left:{{ comment[1] }}px;"> 43 <div class="comment-content" style="left:{{ comment[1] }}px;">
44 <span class="comment-tip comment-tip-left"></span> 44 <span class="comment-tip comment-tip-left"></span>
45 <div class="message"> 45 <div class="message">
46 <dl id="{{ comment[0].meta['itemid'] }}"> 46 <dl id="{{ comment[0].meta['itemid'] }}">
47 47
48 <div class="message-markup"> 48 <div class="message-markup">
49 {{ Markup((comment[0].meta['content'])) }} 49 {{ ((comment[0].meta['content'])) }}
50 </div> 50 </div>
51 <span class="moin-ticket-subtext"> 51 <span class="moin-ticket-subtext">
52 <a href="#" class="reply" reply_to={{ comment[0].meta['itemi d'] }} refers_to={{ comment[0].meta['refers_to'] }}>reply</a> |· 52 <a href="#" class="reply" reply_to={{ comment[0].meta['itemi d'] }} refers_to={{ comment[0].meta['refers_to'] }}>reply</a> |·
53 <a class="jumper" href="#{{ comment[0].meta['itemid'] }}">{{ comment[0].meta['itemid'][:4] }}</a> 53 <a class="jumper" href="#{{ comment[0].meta['itemid'] }}">{{ comment[0].meta['itemid'][:4] }}</a>
54 {% if comment[0].meta['reply_to'] %} 54 {% if comment[0].meta['reply_to'] %}
55 In reply to <a class="jumper" href="#{{ comment[0].meta[ 'reply_to'] }}">{{ comment[0].meta['reply_to'][:4] }}</a> 55 In reply to <a class="jumper" href="#{{ comment[0].meta[ 'reply_to'] }}">{{ comment[0].meta['reply_to'][:4] }}</a>
56 {% endif %} 56 {% endif %}
57 posted by {{ comment[0].meta['author'] }} on {{ datetime.dat etime.fromtimestamp(comment[0].meta['mtime']).strftime('%Y-%m-%d %H:%M:%S') }} 57 posted by {{ comment[0].meta['author'] }} on {{ datetime.dat etime.fromtimestamp(comment[0].meta['mtime']).strftime('%Y-%m-%d %H:%M:%S') }}
58 </span> 58 </span>
59 </dl> 59 </dl>
(...skipping 30 matching lines...) Expand all
90 {% if user.valid and exists %} 90 {% if user.valid and exists %}
91 <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"> 91 <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">
92 <i class="fa fa-envelope fa-fw"></i> 92 <i class="fa fa-envelope fa-fw"></i>
93 {%- if user.is_subscribed_to(item) %} 93 {%- if user.is_subscribed_to(item) %}
94 {{ _('Unsubscribe') }} 94 {{ _('Unsubscribe') }}
95 {%- else %} 95 {%- else %}
96 {{ _('Subscribe') }} 96 {{ _('Subscribe') }}
97 {%- endif %} 97 {%- endif %}
98 </a> 98 </a>
99 {% endif %} 99 {% endif %}
100 {% endmacro %}
101
102 {% macro render_file(file) %}
103 <div>
104 <a href="{{ url_for('.show_item', item_name=file.fullname) }}"
105 class="{{ file.meta['contenttype']|contenttype_to_class }} moin-itemt ype-{{ file.meta['itemtype'] }} moin-item">
106 </a>
107 <a href="{{ url_for('.download_item', item_name=file.fullname) }}" title ="{{ file.relname }}">
108 {{ file.relname|shorten_item_name }}
109 </a>
110 </div>
100 {% endmacro %} 111 {% endmacro %}
101 112
102 {% block head %} 113 {% block head %}
103 {{ super() }} 114 {{ super() }}
104 <link media="all" rel="stylesheet" href="{{ url_for('static', filename='css/ ticket.css') }}" /> 115 <link media="all" rel="stylesheet" href="{{ url_for('static', filename='css/ ticket.css') }}" />
105 {% endblock %} 116 {% endblock %}
106 117
107 {% set exists = item.fqname and storage.get_item(**item.fqname.query) %} 118 {% set exists = item.fqname and storage.get_item(**item.fqname.query) %}
108 {% block local_panel %} 119 {% block local_panel %}
109 {% if user.valid and exists %} 120 {% if user.valid and exists %}
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 {% block footer_itemviews %} 179 {% block footer_itemviews %}
169 {{ itemviews() }} 180 {{ itemviews() }}
170 {% endblock %} 181 {% endblock %}
171 182
172 {% block body_scripts %} 183 {% block body_scripts %}
173 {{ super() }} 184 {{ super() }}
174 <script src="{{ url_for('serve.files', name='jquery', filename='jquery.min.j s') }}"></script> 185 <script src="{{ url_for('serve.files', name='jquery', filename='jquery.min.j s') }}"></script>
175 <script src="{{ url_for('static', filename='js/search.js') }}"></script> 186 <script src="{{ url_for('static', filename='js/search.js') }}"></script>
176 <script src="{{ url_for('static', filename='js/tickets.js') }}"></script> 187 <script src="{{ url_for('static', filename='js/tickets.js') }}"></script>
177 {% endblock %} 188 {% endblock %}
LEFTRIGHT

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