Making WordPress.org


Ignore:
Timestamp:
12/31/2013 04:38:15 PM (12 years ago)
Author:
nacin
Message:

Trac: What should be final button adjustments. The trac comment deletion plugin requires h3.change > div.trac-ticket-buttons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/ticket_change.diff

    r202 r204  
    33--- 1.0-stable/trac/ticket/templates/ticket_change.html (revision 12333)
    44+++ 1.0-stable/trac/ticket/templates/ticket_change.html (working copy)
    5 @@ -48,7 +48,31 @@
    6          </py:for>
     5@@ -49,6 +49,15 @@
    76       </py:if>
    87     </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>
    248     <py:choose>
    259+      <py:when test="'author' in change">
     
    3519         <i18n:msg params="date, author">Changed ${pretty_dateinfo(change.date)} by ${authorinfo(change.author)}</i18n:msg>
    3620       </py:when>
    37 @@ -58,21 +82,6 @@
     21@@ -57,22 +66,23 @@
     22       </py:otherwise>
    3823     </py:choose>
    3924     <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>
    4040   </h3>
    4141-  <div py:if="show_buttons" class="trac-ticket-buttons">
     
    5454-    </form>
    5555-  </div>
     56+  <div py:if="show_buttons" class="trac-ticket-buttons" />
    5657   <ul py:if="change.fields" class="changes">
    5758     <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.