Skip to content

Commit

Permalink
SONAR-8377 Remove some code related to issue filters in rails
Browse files Browse the repository at this point in the history
  • Loading branch information
julienlancelot committed Nov 10, 2016
1 parent 772ee99 commit dcc88b6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
Expand Up @@ -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
Expand Down
Expand Up @@ -73,15 +73,6 @@ def property_input_field(name, type, value, screen, options = {})
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>"
Expand Down

0 comments on commit dcc88b6

Please sign in to comment.