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



commit cae6296c2df56ff8441561256b53244359d51be0
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Tue Nov 11 22:06:23 2014 +0100

    template overrides: Modify choose product page for Browse extension
    
    For the same causes as with choose classification page.

 .../en/default/global/choose-product.html.tmpl     |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/TemplateOverrides/template/en/default/global/choose-product.html.tmpl 
b/TemplateOverrides/template/en/default/global/choose-product.html.tmpl
index dfa0b00..a1d8e66 100644
--- a/TemplateOverrides/template/en/default/global/choose-product.html.tmpl
+++ b/TemplateOverrides/template/en/default/global/choose-product.html.tmpl
@@ -15,6 +15,7 @@
   # format:   the desired format to display the target.
   #%]
 
+[% UNLESS parameterized_target.defined %]
 [% IF target == "enter_bug.cgi" %]
   [% title = "Enter $terms.Bug" %]
   [% h2 = BLOCK %]First, you must pick a product on which to enter [% terms.abug %]: [% END %]
@@ -22,6 +23,7 @@
   [% title = "Browse" %]
   [% h2 = "Select a product category to browse:" %]
 [% END %]
+[% END %]
 
 [% DEFAULT title = "Choose a Product" %]
 [% PROCESS global/header.html.tmpl %]
@@ -41,9 +43,15 @@
   [% FOREACH p = c.products %]
     <tr>
       <th align="right" valign="top">
+        [% IF parameterized_target.defined %]
+        <a href="[% target %]&amp;product=[% p.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 %]?product=[% p.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 %]
         [% p.name FILTER html FILTER no_break %]</a>:&nbsp;
       </th>
 


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