diff options
Diffstat (limited to 'template/en/default/search/tabs.html.tmpl')
-rw-r--r-- | template/en/default/search/tabs.html.tmpl | 39 |
1 files changed, 8 insertions, 31 deletions
diff --git a/template/en/default/search/tabs.html.tmpl b/template/en/default/search/tabs.html.tmpl index 06b22f7a2..00358cb59 100644 --- a/template/en/default/search/tabs.html.tmpl +++ b/template/en/default/search/tabs.html.tmpl @@ -21,36 +21,13 @@ #%] [%# INTERFACE: - # tabs: List of hashes. May not be empty. Each hash has two members: - # name: string. Name of the tab and the format it represents. - # description: string. Description of the tab (used in tab title). + # This template has no interface. #%] -[% tabs = [ { name => 'specific', description => "Find a Specific $terms.Bug " }, - { name => 'advanced', description => "Advanced Search" } ] %] - -[% current_tab = query_format || format || "advanced" %] - -<center> - <table cellspacing="0" cellpadding="10" border="0" width="100%"> - <tr> - <td class="spacer"> </td> - - [% FOREACH tab = tabs %] - [% IF tab.name == current_tab %] - <td align="center" bgcolor="lightblue" class="selected_tab"> - [% tab.description %] - </td> - [% ELSE %] - <td align="center" bgcolor="#BBBBEE" class="unselected_tab"> - <a href="query.cgi?format=[% tab.name %]" > - [% tab.description %] - </a> - </td> - [% END %] - [% END %] - - <td class="spacer"> </td> - </tr> - </table> -</center> +[% PROCESS global/tabs.html.tmpl + tabs = [ { name => 'specific', label => "Find a Specific $terms.Bug", + link => "query.cgi?format=specific" }, + { name => 'advanced', label => "Advanced Search", + link => "query.cgi?format=advanced" } ] + current_tab_name = query_format || format || "advanced" +%] |