summaryrefslogtreecommitdiffstats
path: root/extensions/Splinter/template/en/default/hook/attachment
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-03-15 06:30:57 +0100
committerByron Jones <bjones@mozilla.com>2013-03-15 06:30:57 +0100
commit0131b54976afdd3662475e7e84ad66c2997c0287 (patch)
treeb5c8bb7c808dba9c79931a04a39efc3757cb92fe /extensions/Splinter/template/en/default/hook/attachment
parentd936a21ce97276c731abc6830a0ef3c0539e51e9 (diff)
downloadbugzilla-0131b54976afdd3662475e7e84ad66c2997c0287.tar.gz
bugzilla-0131b54976afdd3662475e7e84ad66c2997c0287.tar.xz
Bug 850675: editing the splinter url always appends a /, which results in a broken url
Diffstat (limited to 'extensions/Splinter/template/en/default/hook/attachment')
-rw-r--r--extensions/Splinter/template/en/default/hook/attachment/edit-action.html.tmpl10
-rw-r--r--extensions/Splinter/template/en/default/hook/attachment/list-action.html.tmpl10
2 files changed, 4 insertions, 16 deletions
diff --git a/extensions/Splinter/template/en/default/hook/attachment/edit-action.html.tmpl b/extensions/Splinter/template/en/default/hook/attachment/edit-action.html.tmpl
index ba564d4b4..7648e1d76 100644
--- a/extensions/Splinter/template/en/default/hook/attachment/edit-action.html.tmpl
+++ b/extensions/Splinter/template/en/default/hook/attachment/edit-action.html.tmpl
@@ -20,12 +20,6 @@
#%]
[% IF attachment.ispatch %]
-&#x0020; |
- [% IF Param("splinter_base").search('\?') %]
- <a href="[% urlbase FILTER none %][% Param("splinter_base") FILTER html %]&amp;bug=[% attachment.bug_id FILTER uri %]&amp;attachment=[% attachment.id FILTER uri%]">
- Splinter Review</a>
- [% ELSE %]
- <a href="[% urlbase FILTER none %][% Param("splinter_base") FILTER html %]?bug=[% attachment.bug_id FILTER uri %]&amp;attachment=[% attachment.id FILTER uri %]">
- Splinter Review</a>
- [% END %]
+ &#x0020; |
+ <a href="[% Bugzilla.splinter_review_url(attachment.bug_id, attachment.id) FILTER none %]">Review</a>
[% END %]
diff --git a/extensions/Splinter/template/en/default/hook/attachment/list-action.html.tmpl b/extensions/Splinter/template/en/default/hook/attachment/list-action.html.tmpl
index 51babf079..cd2db2770 100644
--- a/extensions/Splinter/template/en/default/hook/attachment/list-action.html.tmpl
+++ b/extensions/Splinter/template/en/default/hook/attachment/list-action.html.tmpl
@@ -20,12 +20,6 @@
#%]
[% IF attachment.ispatch %]
-&#x0020; |
- [% IF Param("splinter_base").search('\?') %]
- <a href="[% urlbase FILTER none %][% Param("splinter_base") FILTER html %]&amp;bug=[% bugid FILTER uri %]&amp;attachment=[% attachment.id FILTER uri %]">
- Splinter Review</a>
- [% ELSE %]
- <a href="[% urlbase FILTER none %][% Param("splinter_base") FILTER html %]?bug=[% bugid FILTER uri %]&amp;attachment=[% attachment.id FILTER uri %]">
- Splinter Review</a>
- [% END %]
+ &#x0020; |
+ <a href="[% Bugzilla.splinter_review_url(bug.id, attachment.id) FILTER none %]">Review</a>
[% END %]