[bugzilla-gnome-org-extensions] template overrides: Modify choose classification page for Browse extension



commit 2aebcdcedad923560b49493f1a3a0a2cbdebdb67
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Tue Nov 11 21:58:15 2014 +0100

    template overrides: Modify choose classification page for Browse extension
    
    Now it accepts another variable (parameterized_target) where we can
    pass a page.cgi?id=foo.html and have still working URIs.

 .../default/global/choose-classification.html.tmpl |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/TemplateOverrides/template/en/default/global/choose-classification.html.tmpl 
b/TemplateOverrides/template/en/default/global/choose-classification.html.tmpl
index 76789a2..6600246 100644
--- a/TemplateOverrides/template/en/default/global/choose-classification.html.tmpl
+++ b/TemplateOverrides/template/en/default/global/choose-classification.html.tmpl
@@ -11,10 +11,12 @@
   #                  at least one product accessible by the user.
   #%]
 
+[% UNLESS parameterized_target.defined %]
 [% IF target == "enter_bug.cgi" %]
   [% title = "Select Classification" %]
   [% subheader = "Please select the classification." %]
 [% END %]
+[% END %]
 
 [% DEFAULT title = "Choose the classification" %]
 [% PROCESS global/header.html.tmpl %]
@@ -22,9 +24,15 @@
 <table>
   <tr>
     <th align="right">
+      [% IF parameterized_target.defined %]
+      <a href="[% parameterized_target FILTER uri %]&amp;classification=__all
+            [% IF cloned_bug_id %]&amp;cloned_bug_id=[% cloned_bug_id FILTER uri %][% END -%]
+            [%- IF format %]&amp;format=[% format FILTER uri %][% END %]">
+      [% ELSE %]
       <a href="[% target FILTER uri %]?classification=__all
             [% IF cloned_bug_id %]&amp;cloned_bug_id=[% cloned_bug_id FILTER uri %][% END -%] 
             [%- IF format %]&amp;format=[% format FILTER uri %][% END %]">
+      [% END %]
       All</a>:
     </th>
 
@@ -37,9 +45,15 @@
 [% FOREACH class = classifications %]
   <tr>
     <th align="right">
+      [% IF parameterized_target.defined %]
+      <a href="[% parameterized_target FILTER uri %]&amp;classification=[% class.name FILTER uri -%]
+            [%- IF cloned_bug_id %]&amp;cloned_bug_id=[% cloned_bug_id FILTER uri %][% END -%]
+            [%- IF format %]&amp;format=[% format FILTER uri %][% END %]">
+      [% ELSE %]
       <a href="[% target FILTER uri %]?classification=[% class.name FILTER uri -%]
             [%- IF cloned_bug_id %]&amp;cloned_bug_id=[% cloned_bug_id FILTER uri %][% END -%] 
             [%- IF format %]&amp;format=[% format FILTER uri %][% END %]">
+      [% END %]
       [% class.name FILTER html %]</a>:
     </th>
 


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