[bugzilla-gnome-org-customizations/production] DescribeUser: Move the "My Patches" section higher (under NEEDINFO)



commit fc766ba356de5166f6c7ba0a9cb7f89deddf084e
Author: Andre Klapper <a9016009 gmx de>
Date:   Thu Feb 5 17:32:09 2015 +0100

    DescribeUser: Move the "My Patches" section higher (under NEEDINFO)
    
    It's more important and relevant than first listing all those
    ancient reports that I created once upon a time and that are still
    open or assigned, or stuff I reported that got closed recently.

 .../en/default/pages/describeuser.html.tmpl        |   95 ++++++++++----------
 1 files changed, 48 insertions(+), 47 deletions(-)
---
diff --git a/extensions/DescribeUser/template/en/default/pages/describeuser.html.tmpl 
b/extensions/DescribeUser/template/en/default/pages/describeuser.html.tmpl
index aea3f65..bb46a34 100644
--- a/extensions/DescribeUser/template/en/default/pages/describeuser.html.tmpl
+++ b/extensions/DescribeUser/template/en/default/pages/describeuser.html.tmpl
@@ -235,6 +235,54 @@
     </table>
   </p>
 
+[%### Patches ###%]
+  [% IF patches.size %]
+    [% status = '' %]
+    [% FOREACH patch = patches %]
+      [% IF patch.status != status %]
+        [% IF status != '' %]
+          [% "\n    </table>\n  </p>\n\n" %]
+        [% END %]
+        [% status = patch.status %]
+        [% "  <p>\n" _
+           "    <h3><span>Patches written by" %]
+        [%+ displayname FILTER html %]
+        [%+ "and with status: %]
+        [% status.replace('none','unreviewed') FILTER html %]
+        [% "</span></h3>\n" %]
+        [% "    <table border=\"0\" cellpadding=\"2\" cellspacing=\"0\">" %]
+      [% END %]
+      <tr class="[%+ IF loop.count() % 2 == 0 %]
+                   [% "bz_row_even" %]
+                 [% ELSE %]
+                   [% "bz_row_odd" %]
+                 [% END %]">
+        <td><a href="[% "show_bug.cgi?id=" %]
+                     [% patch.bug_id FILTER uri%]">
+                     [% patch.bug_id FILTER html %]</a></td>
+        <td><a href="[% "attachment.cgi?id=" %]
+                     [% patch.attach_id FILTER uri %]
+                     [% "&amp;action=diff" %]">(#
+                     [% patch.attach_id FILTER html %])</a></td>
+        <td nowrap="nowrap" style="width: 12ex">
+          [% %]<a href="[% "page.cgi?id=browse.html&amp;product=" %]
+                        [% patch.product FILTER uri %]
+                        [% "\">" %]
+                        [% patch.product FILTER html %]</a></td>
+        <td><a href="[% "attachment.cgi?id=" %]
+                     [% patch.attach_id FILTER uri %]
+                     [% "&amp;action=diff" %]">
+                     [% patch.description FILTER html %]</a></td>
+        <td><a href="[% "show_bug.cgi?id=" %]
+                     [% patch.bug_id FILTER uri%]">
+                     [% patch.bug_title FILTER html %]</a></td>
+
+      </tr>
+    [% END %]
+    [% "    </table>\n  </p>" %]
+  [% END %]
+
+[%### Bugs again ###%]
   <p>
     <h3><span>Open Issues:
       <a href="
@@ -333,51 +381,4 @@
     </table>
   </p>
 
-[%### Patches ###%]
-  [% IF patches.size %]
-    [% status = '' %]
-    [% FOREACH patch = patches %]
-      [% IF patch.status != status %]
-        [% IF status != '' %]
-          [% "\n    </table>\n  </p>\n\n" %]
-        [% END %]
-        [% status = patch.status %]
-        [% "  <p>\n" _
-           "    <h3><span>Patches written by" %]
-        [%+ displayname FILTER html %]
-        [%+ "and with status: %]
-        [% status.replace('none','unreviewed') FILTER html %]
-        [% "</span></h3>\n" %]
-        [% "    <table border=\"0\" cellpadding=\"2\" cellspacing=\"0\">" %]
-      [% END %]
-      <tr class="[%+ IF loop.count() % 2 == 0 %]
-                   [% "bz_row_even" %]
-                 [% ELSE %]
-                   [% "bz_row_odd" %]
-                 [% END %]">
-        <td><a href="[% "show_bug.cgi?id=" %]
-                     [% patch.bug_id FILTER uri%]">
-                     [% patch.bug_id FILTER html %]</a></td>
-        <td><a href="[% "attachment.cgi?id=" %]
-                     [% patch.attach_id FILTER uri %]
-                     [% "&amp;action=diff" %]">(#
-                     [% patch.attach_id FILTER html %])</a></td>
-        <td nowrap="nowrap" style="width: 12ex">
-          [% %]<a href="[% "page.cgi?id=browse.html&amp;product=" %]
-                        [% patch.product FILTER uri %]
-                        [% "\">" %]
-                        [% patch.product FILTER html %]</a></td>
-        <td><a href="[% "attachment.cgi?id=" %]
-                     [% patch.attach_id FILTER uri %]
-                     [% "&amp;action=diff" %]">
-                     [% patch.description FILTER html %]</a></td>
-        <td><a href="[% "show_bug.cgi?id=" %]
-                     [% patch.bug_id FILTER uri%]">
-                     [% patch.bug_title FILTER html %]</a></td>
-
-      </tr>
-    [% END %]
-    [% "    </table>\n  </p>" %]
-  [% END %]
-
 [% PROCESS global/footer.html.tmpl %]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]