aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-core-plugin
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-05-07 18:15:08 +0200
committerDavid Gageot <david@gageot.net>2012-05-07 18:15:08 +0200
commit6c5b4ba2a3239810f825af566247472e74708357 (patch)
tree12a19df8aa907704d65ce3c8ce71dd2f77d79da5 /plugins/sonar-core-plugin
parentfa852892effc466012d8d43b347780ac4d26ae12 (diff)
downloadsonarqube-6c5b4ba2a3239810f825af566247472e74708357.tar.gz
sonarqube-6c5b4ba2a3239810f825af566247472e74708357.zip
SONAR-1927 Simplify Filter widget
Diffstat (limited to 'plugins/sonar-core-plugin')
-rw-r--r--plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/filter.html.erb7
1 files changed, 6 insertions, 1 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 b3823af73ed..c827262043f 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 +1,6 @@
-<%= render :partial => 'filters/widget', :locals => {:filter_id => widget_properties['filter']} -%> \ No newline at end of file
+<%
+ @filter=::Filter.find(widget_properties['filter'])
+ @filter_context=Filters.execute(@filter, self, params)
+%>
+
+<%= render :partial => "filters/#{@filter.default_view}", :locals => {:edit_mode => false} %>