diff options
author | David Gageot <david@gageot.net> | 2012-07-13 15:58:19 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-07-13 15:58:19 +0200 |
commit | fc86d6794049a0f498dc0b85b9350198b4ac7444 (patch) | |
tree | df04366d7b7118e2a66899012421c0bd22f8ddfc /plugins | |
parent | 8a2b810abcc15ec1766cbfbd2e2907a9c12fe702 (diff) | |
download | sonarqube-fc86d6794049a0f498dc0b85b9350198b4ac7444.tar.gz sonarqube-fc86d6794049a0f498dc0b85b9350198b4ac7444.zip |
SONAR-3628 Possibility to customise the title of global widget
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/filter.html.erb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/filter.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/filter.html.erb index 76bc1efe49b..5887e4999bf 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/filter.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/filter.html.erb @@ -1,6 +1,10 @@ <% - @filter=::Filter.find(:first, :conditions => {:kee => widget_properties['filter']}) - @filter_context=Filters.execute(@filter, self, params) unless @filter.ajax_loading? + @filter=::Filter.find(:first, :conditions => {:kee => widget_properties['filter']}) + @filter_context=Filters.execute(@filter, self, params) unless @filter.ajax_loading? + + name=@filter.name + period=period_names[@filter.period_index - 1] if @filter.period_index + @widget_title=[h(name), period].compact.join(' - ') %> <%= render :partial => "filters/#{@filter.default_view}", :locals => {:edit_mode => false, :widget => widget} %> |