gitlab-org--gitlab-foss/app/helpers/issues_helper.rb

13 lines
320 B
Ruby
Raw Normal View History

2011-10-08 17:36:38 -04:00
module IssuesHelper
def sort_class
if can?(current_user, :admin_issue, @project) && (!params[:f] || params[:f] == "0")
"handle"
end
end
def project_issues_filter_path project, params = {}
params[:f] ||= cookies['issue_filter']
project_issues_path project, params
end
2011-10-08 17:36:38 -04:00
end