- Timestamp:
- 12/31/2013 04:38:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/trac.wordpress.org/templates/ticket_change.diff
r202 r204 3 3 --- 1.0-stable/trac/ticket/templates/ticket_change.html (revision 12333) 4 4 +++ 1.0-stable/trac/ticket/templates/ticket_change.html (working copy) 5 @@ -48,7 +48,31 @@ 6 </py:for> 5 @@ -49,6 +49,15 @@ 7 6 </py:if> 8 7 </span> 9 + <div py:if="show_buttons" class="trac-ticket-buttons">10 + <form py:if="'cnum' in change and can_edit_comment" method="get" action="#comment:${cnum}">11 + <div class="inlinebuttons">12 + <input type="hidden" name="cnum_edit" value="${cnum}"/>13 + <input type="submit" value="${captioned_button('✎', _('Edit'))}" title="${_('Edit comment %(cnum)s', cnum=cnum)}" />14 + </div>15 + </form>16 + <form py:if="'cnum' in change and can_append" id="reply-to-comment-${cnum}"17 + method="get" action="#comment">18 + <div class="inlinebuttons">19 + <input type="hidden" name="replyto" value="${cnum}"/>20 + <input type="submit" value="${captioned_button('↳', _('Reply'))}" title="${_('Reply to comment %(cnum)s', cnum=cnum)}" />21 + </div>22 + </form>23 + </div>24 8 <py:choose> 25 9 + <py:when test="'author' in change"> … … 35 19 <i18n:msg params="date, author">Changed ${pretty_dateinfo(change.date)} by ${authorinfo(change.author)}</i18n:msg> 36 20 </py:when> 37 @@ -58,21 +82,6 @@ 21 @@ -57,22 +66,23 @@ 22 </py:otherwise> 38 23 </py:choose> 39 24 <span py:if="preview or show_editor" class="trac-loading"/> 25 + <div py:if="show_buttons" class="trac-ticket-buttons"> 26 + <form py:if="'cnum' in change and can_append" id="reply-to-comment-${cnum}" 27 + method="get" action="#comment"> 28 + <div class="inlinebuttons"> 29 + <input type="hidden" name="replyto" value="${cnum}"/> 30 + <input type="submit" value="${captioned_button('↳', _('Reply'))}" title="${_('Reply to comment %(cnum)s', cnum=cnum)}" /> 31 + </div> 32 + </form> 33 + <form py:if="'cnum' in change and can_edit_comment" method="get" action="#comment:${cnum}"> 34 + <div class="inlinebuttons"> 35 + <input type="hidden" name="cnum_edit" value="${cnum}"/> 36 + <input type="submit" value="${captioned_button('✎', _('Edit'))}" title="${_('Edit comment %(cnum)s', cnum=cnum)}" /> 37 + </div> 38 + </form> 39 + </div> 40 40 </h3> 41 41 - <div py:if="show_buttons" class="trac-ticket-buttons"> … … 54 54 - </form> 55 55 - </div> 56 + <div py:if="show_buttons" class="trac-ticket-buttons" /> 56 57 <ul py:if="change.fields" class="changes"> 57 58 <li py:for="field_name, field in sorted(change.fields.iteritems(), key=lambda item: item[1].label.lower())"
Note: See TracChangeset
for help on using the changeset viewer.