[bugzilla-gnome-org-customizations/production] Move Priority and Severity sections from sidebar to main area



commit 61c8b28f1c7dc190c7d667aad1fe6d0fe82ba5f2
Author: Andre Klapper <a9016009 gmx de>
Date:   Wed Feb 11 01:22:32 2015 +0100

    Move Priority and Severity sections from sidebar to main area
    
    ...and put them next to the Target Milestones. As priority and
    severity have a limited number of choices and as maintainers
    should clean up those old open tasks with past target milestones
    this looks like a good combination when it comes to the height of
    these sections.
    
    Furthermore, proper usage of priority and severity in combination
    with target milestones seems like important enough to not hide
    this in the sidebar but make it more central.

 .../template/en/default/pages/browse.html.tmpl     |   89 +++++++++++---------
 1 files changed, 50 insertions(+), 39 deletions(-)
---
diff --git a/extensions/Browse/template/en/default/pages/browse.html.tmpl 
b/extensions/Browse/template/en/default/pages/browse.html.tmpl
index 14b2fa3..1235b78 100644
--- a/extensions/Browse/template/en/default/pages/browse.html.tmpl
+++ b/extensions/Browse/template/en/default/pages/browse.html.tmpl
@@ -148,44 +148,6 @@
     [% END %]
     </table>
 
-  [% IF by_priority.size %]
-    <h3>Priority</h3>
-    <table border="0" cellpadding="0" cellspacing="0" class="figures">
-    [% FOREACH col = by_priority %]
-      <tr>
-        <td>
-          <a class="boogle_edit"
-             href="javascript:addText('priority:[% col.0 FILTER js %]')">
-            [%- col.0 FILTER html %]</a>
-        </td>
-        <td align="right">
-          <a href="[% buglink FILTER html %]&amp;priority=
-                   [%- col.0 FILTER uri %]">[% col.1 FILTER html %]</a>
-        </td>
-      </tr>
-    [% END %]
-    </table>
-  [% END %]
-
-  [% IF by_severity.size %]
-    <h3>Severity</h3>
-    <table border="0" cellpadding="0" cellspacing="0" class="figures">
-    [% FOREACH col = by_severity %]
-      <tr>
-        <td>
-          <a class="boogle_edit"
-             href="javascript:addText('severity:[% col.0 FILTER js %]')">
-            [%- col.0 FILTER html %]</a>
-        </td>
-        <td align="right">
-          <a href="[% buglink FILTER html %]&amp;bug_severity=
-                   [%- col.0 FILTER uri %]">[% col.1 FILTER html %]</a>
-        </td>
-      </tr>
-    [% END %]
-    </table>
-  [% END %]
-
   <h3>Useful links</h3>
   <ul>
     <li>
@@ -335,10 +297,17 @@ Browse:
 <table cellpadding="3" cellspacing="0">
 <tr>
   <th>Milestones</th>
+  [% IF by_priority.size %]
+  <td>&nbsp;</td>
+  <th>Priority</th>
+  [% END %]
+  [% IF by_severity.size %]
+  <td>&nbsp;</td>
+  <th>Severity</th>
+  [% END %]
 </tr>
 <tr>
   <td valign="top">
-
   <table border="0" cellpadding="0" cellspacing="0" class="figures">
   [% FOREACH col = by_target %]
     <tr>
@@ -351,8 +320,50 @@ Browse:
     </tr>
   [% END %]
   </table>
+  </td>
 
+  [% IF by_priority.size %]
+  <td>&nbsp;</td>
+  <td valign="top">
+  <table border="0" cellpadding="0" cellspacing="0" class="figures">
+  [% FOREACH col = by_priority %]
+    <tr>
+      <td>
+        <a class="boogle_edit"
+           href="javascript:addText('priority:[% col.0 FILTER js %]')">
+          [%- col.0 FILTER html %]</a>
+      </td>
+      <td align="right">
+        <a href="[% buglink FILTER html %]&amp;priority=
+                 [%- col.0 FILTER uri %]">[% col.1 FILTER html %]</a>
+      </td>
+    </tr>
+  [% END %]
+  </table>
   </td>
+  [% END %]
+
+  [% IF by_severity.size %]
+  <td>&nbsp;</td>
+  <td valign="top">
+  <table border="0" cellpadding="0" cellspacing="0" class="figures">
+  [% FOREACH col = by_severity %]
+    <tr>
+      <td>
+        <a class="boogle_edit"
+           href="javascript:addText('severity:[% col.0 FILTER js %]')">
+          [%- col.0 FILTER html %]</a>
+      </td>
+      <td align="right">
+        <a href="[% buglink FILTER html %]&amp;bug_severity=
+                 [%- col.0 FILTER uri %]">[% col.1 FILTER html %]</a>
+      </td>
+    </tr>
+  [% END %]
+  </table>
+  </td>
+  [% END %]
+
 </tr>
 </table>
 


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