Commit 457f46da authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 581798: Remove whitespaces from URLs when listing classifications and…

Bug 581798: Remove whitespaces from URLs when listing classifications and products in editproducts.cgi r/a=mkanat
parent be2f19f8
...@@ -27,18 +27,11 @@ ...@@ -27,18 +27,11 @@
title = "Select Classification" title = "Select Classification"
%] %]
[% edit_contentlink = BLOCK %]
editproducts.cgi?classification=%%name%%
[% END %]
[% add_contentlink = BLOCK %]
editproducts.cgi?action=add&classification=%%name%%
[% END %]
[% columns = [ [% columns = [
{ {
name => "name" name => "name"
heading => "Edit products of..." heading => "Edit products of..."
contentlink => edit_contentlink contentlink => 'editproducts.cgi?classification=%%name%%'
}, },
{ {
name => "description" name => "description"
...@@ -57,7 +50,7 @@ ...@@ -57,7 +50,7 @@
[% columns.push({ [% columns.push({
heading => "Action..." heading => "Action..."
content => "Add product" content => "Add product"
contentlink => add_contentlink }) contentlink => 'editproducts.cgi?action=add&classification=%%name%%' })
%] %]
[% END %] [% END %]
......
...@@ -37,22 +37,11 @@ ...@@ -37,22 +37,11 @@
title = "Select product $classification_title" title = "Select product $classification_title"
%] %]
[% edit_contentlink = BLOCK %]
editproducts.cgi?action=edit&product=%%name%%
[% END %]
[% delete_contentlink = BLOCK %]
editproducts.cgi?action=del&product=%%name%%
[% END %]
[% bug_count_contentlink = BLOCK %]
buglist.cgi?product=%%name%%
[% END %]
[% columns = [ [% columns = [
{ {
name => "name" name => "name"
heading => "Edit product..." heading => "Edit product..."
contentlink => edit_contentlink contentlink => 'editproducts.cgi?action=edit&product=%%name%%'
}, },
{ {
name => "description" name => "description"
...@@ -72,7 +61,7 @@ ...@@ -72,7 +61,7 @@
name => "bug_count" name => "bug_count"
heading => "$terms.Bug Count" heading => "$terms.Bug Count"
align => 'right' align => 'right'
contentlink => bug_count_contentlink contentlink => 'buglist.cgi?product=%%name%%'
}) })
%] %]
...@@ -81,7 +70,7 @@ ...@@ -81,7 +70,7 @@
[% columns.push({ [% columns.push({
heading => "Action" heading => "Action"
content => "Delete" content => "Delete"
contentlink => delete_contentlink contentlink => 'editproducts.cgi?action=del&product=%%name%%'
}) })
%] %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment