From 85fa6fb9eef5a063ca84ebe1ca47b16be6c44ccc Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 16 Aug 2012 17:03:11 -0400 Subject: Dashboard improvements --- .../en/default/pages/productdashboard.html.tmpl | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl') diff --git a/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl b/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl index a8096e391..daf0ea6df 100644 --- a/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl +++ b/extensions/ProductDashboard/template/en/default/pages/productdashboard.html.tmpl @@ -55,11 +55,6 @@ label => "Duplicates", link => "page.cgi?id=productdashboard.html&product=$url_filtered_product&bug_status=$url_filtered_status&tab=duplicates" }, - { - name => "popularity", - label => "Popularity", - link => "page.cgi?id=productdashboard.html&product=$url_filtered_product&bug_status=$url_filtered_status&tab=popularity" - }, { name => "roadmap", label => "Road Map", @@ -68,6 +63,16 @@ ] %] +[% IF product.votesperuser %] + [% + tabs.push({ + name => "popularity", + label => "Popularity", + link => "page.cgi?id=productdashboard.html&product=$url_filtered_product&bug_status=$url_filtered_status&tab=popularity" + }) + %] +[% END %] + [% FOREACH tab IN tabs %] [% IF tab.name == current_tab_name %] [% current_tab = tab %] @@ -152,10 +157,6 @@ current_tab = current_tab %] -
- [% current_tab.label FILTER html %] -
- [% IF current_tab.name == 'summary' %] [% PROCESS pages/productdashboard/summary.html.tmpl %] [% END %] -- cgit v1.2.3-24-g4f1b