]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2073 Fix filter widget title format
authorDavid Gageot <david@gageot.net>
Wed, 16 May 2012 13:52:17 +0000 (15:52 +0200)
committerDavid Gageot <david@gageot.net>
Wed, 16 May 2012 13:52:17 +0000 (15:52 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_title.html.erb

index e3117eb9ed7d20b43f1454cfd751cde5468f058b..69efb4fad2756aabac73ef4423b0b853e5bd1ea3 100644 (file)
@@ -5,7 +5,9 @@
     <div class="widget-title">
       <% if filter %>
         <%= filter.name -%>
-        <%= period_names[filter.period_index] if filter.period_index -%>
+        <% if filter.period_index %>
+          (<%= period_names[filter.period_index] -%>)
+        <% end %>
       <% end %>
     </div>
   <% elsif @resource && !widget.java_definition.global %>