summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorAlbert Ting <altlist@gmail.com>2013-02-16 23:44:08 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2013-02-16 23:44:08 +0100
commit331fee414c98ff0eda46173bf2ebb700295461e7 (patch)
tree7ff24b69908f979335cfb67a8bad8aad72642456 /template/en/default
parent91a5a96b0b9890808fe888b60ba552cb49d874a8 (diff)
downloadbugzilla-331fee414c98ff0eda46173bf2ebb700295461e7.tar.gz
bugzilla-331fee414c98ff0eda46173bf2ebb700295461e7.tar.xz
Bug 836436: Add a "search_tabs" hook to allow additional search tabs
r/a=LpSolit
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/search/tabs.html.tmpl12
1 files changed, 8 insertions, 4 deletions
diff --git a/template/en/default/search/tabs.html.tmpl b/template/en/default/search/tabs.html.tmpl
index f7703fd92..74569dceb 100644
--- a/template/en/default/search/tabs.html.tmpl
+++ b/template/en/default/search/tabs.html.tmpl
@@ -10,11 +10,15 @@
# This template has no interface.
#%]
+[% tabs = [ { name => 'specific', label => "Simple Search",
+ link => "query.cgi?format=specific" },
+ { name => 'advanced', label => "Advanced Search",
+ link => "query.cgi?format=advanced" } ] %]
+
+[% Hook.process('search_tabs') %]
+
[% WRAPPER global/tabs.html.tmpl
- tabs = [ { name => 'specific', label => "Simple Search",
- link => "query.cgi?format=specific" },
- { name => 'advanced', label => "Advanced Search",
- link => "query.cgi?format=advanced" } ]
+ tabs = tabs
current_tab_name = query_format || format || "advanced"
%]