aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-11-09 17:23:19 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-11-10 09:57:51 +0100
commitdcc88b6c2d845ee81bfc092e6d2c9efea9422054 (patch)
tree242f37acea3ba44f2bd6c7a760f6f5842897d728 /server/sonar-web/src/main
parent772ee99c17fe94cb0882f46adc2579832e5d4426 (diff)
downloadsonarqube-dcc88b6c2d845ee81bfc092e6d2c9efea9422054.tar.gz
sonarqube-dcc88b6c2d845ee81bfc092e6d2c9efea9422054.zip
SONAR-8377 Remove some code related to issue filters in rails
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/helpers/issues_helper.rb12
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/helpers/properties_helper.rb9
2 files changed, 0 insertions, 21 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/issues_helper.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/issues_helper.rb
index 2bd8c7fdf1c..c59cbe2a756 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/issues_helper.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/issues_helper.rb
@@ -19,18 +19,6 @@
#
module IssuesHelper
- def issue_filter_star(filter, is_favourite)
- if is_favourite
- style='icon-favorite'
- title=message('click_to_remove_from_favorites')
- else
- style='icon-not-favorite'
- title=message('click_to_add_to_favorites')
- end
-
- "<a href='#' id='star-#{filter.name.parameterize}' class='issue-filter-star #{style}' filter-id='#{filter.id.to_s}' title='#{title}'></a>"
- end
-
def can_be_reassigned_by(user, filter)
user.has_role?(:admin) && filter.shared
end
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/properties_helper.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/properties_helper.rb
index 408472e7a4f..b2b9c967586 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/properties_helper.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/helpers/properties_helper.rb
@@ -73,15 +73,6 @@ module PropertiesHelper
size = options[:size] || 50
text_field_tag name, value, {:size => size}.update(html_options)
- when PropertyType::TYPE_ISSUE_FILTER
- user_filters = options_id(value, Internal.issues.findIssueFiltersForCurrentUser())
- shared_filters = options_id(value, Internal.issues.findSharedFiltersForCurrentUser())
-
- filters_combo = select_tag name, option_group('My Filters', user_filters) + option_group('Shared Filters', shared_filters), html_options
- filter_link = link_to message('widget.filter.edit'), {:controller => 'issues', :action => 'manage'}, :class => 'link-action'
-
- "#{filters_combo} #{filter_link}"
-
when PropertyType::TYPE_SINGLE_SELECT_LIST
default_value = options[:default].blank? ? '' : message('default')
select_options = "<option value=''>#{ default_value }</option>"