]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 581798: Remove whitespaces from URLs when listing classifications and products...
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 26 Jul 2010 12:01:12 +0000 (14:01 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 26 Jul 2010 12:01:12 +0000 (14:01 +0200)
r/a=mkanat

template/en/default/admin/products/list-classifications.html.tmpl
template/en/default/admin/products/list.html.tmpl

index 4eddad30606d7905c3a471fca705365b85d31bad..77634e127f52a6ee68f96ad09c788ef9b5ab261d 100644 (file)
   title = "Select Classification"
 %]
 
-[% edit_contentlink = BLOCK %]
-  editproducts.cgi?classification=%%name%%
-[% END %]
-[% add_contentlink = BLOCK %]
-  editproducts.cgi?action=add&amp;classification=%%name%%
-[% END %]
-
 [% columns = [
      { 
        name => "name"
        heading => "Edit products of..."
-       contentlink => edit_contentlink
+       contentlink => 'editproducts.cgi?classification=%%name%%'
      },
      { 
        name => "description"
@@ -57,7 +50,7 @@
   [% columns.push({
        heading => "Action..."
        content => "Add product"
-       contentlink => add_contentlink })
+       contentlink => 'editproducts.cgi?action=add&amp;classification=%%name%%' })
   %]
 [% END %]
 
index 13f12780a7ab9b638924b400e6dc5a6b79d3e1ea..93467df0e0669971bf781ba1c5af5ccca5ec8c0b 100644 (file)
   title = "Select product $classification_title"
 %]
 
-[% edit_contentlink = BLOCK %]
-  editproducts.cgi?action=edit&amp;product=%%name%%
-[% END %]
-[% delete_contentlink = BLOCK %]
-  editproducts.cgi?action=del&amp;product=%%name%%
-[% END %]
-[% bug_count_contentlink = BLOCK %]
-  buglist.cgi?product=%%name%%
-[% END %]
-
-
 [% columns = [
      { 
        name => "name"
        heading => "Edit product..."
-       contentlink => edit_contentlink
+       contentlink => 'editproducts.cgi?action=edit&amp;product=%%name%%'
      },
      { 
        name => "description"
@@ -72,7 +61,7 @@
        name => "bug_count"
        heading => "$terms.Bug Count"
        align => 'right'
-       contentlink => bug_count_contentlink
+       contentlink => 'buglist.cgi?product=%%name%%'
      })
   %]
 
@@ -81,7 +70,7 @@
 [% columns.push({
        heading => "Action"
        content => "Delete"
-       contentlink => delete_contentlink
+       contentlink => 'editproducts.cgi?action=del&amp;product=%%name%%'
      })
 %]