Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
331fee41
Commit
331fee41
authored
Feb 16, 2013
by
Albert Ting
Committed by
Frédéric Buclin
Feb 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 836436: Add a "search_tabs" hook to allow additional search tabs
r/a=LpSolit
parent
91a5a96b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
tabs-search_tabs.html.tmpl
...emplate/en/default/hook/search/tabs-search_tabs.html.tmpl
+13
-0
tabs.html.tmpl
template/en/default/search/tabs.html.tmpl
+8
-4
No files found.
extensions/Example/template/en/default/hook/search/tabs-search_tabs.html.tmpl
0 → 100644
View file @
331fee41
[%# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
#%]
[%
tabs.push ({ name => 'newsearch', label => "New Search",
link => "query.cgi?format=newsearch" })
%]
template/en/default/search/tabs.html.tmpl
View file @
331fee41
...
...
@@ -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"
%]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment