diff options
author | David Gageot <david@gageot.net> | 2012-05-07 18:15:08 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-05-07 18:15:08 +0200 |
commit | 6c5b4ba2a3239810f825af566247472e74708357 (patch) | |
tree | 12a19df8aa907704d65ce3c8ce71dd2f77d79da5 | |
parent | fa852892effc466012d8d43b347780ac4d26ae12 (diff) | |
download | sonarqube-6c5b4ba2a3239810f825af566247472e74708357.tar.gz sonarqube-6c5b4ba2a3239810f825af566247472e74708357.zip |
SONAR-1927 Simplify Filter widget
-rw-r--r-- | plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/filter.html.erb | 7 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/filters/_widget.html.erb | 6 |
2 files changed, 6 insertions, 7 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} %> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_widget.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_widget.html.erb deleted file mode 100644 index 087605a8a9b..00000000000 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/_widget.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<% - @filter=::Filter.find(filter_id) - @filter_context=Filters.execute(@filter, self, params) -%> - -<%= render :partial => "filters/#{@filter.default_view}", :locals => {:edit_mode => false} %> |