2011-10-08 23:36:38 +02:00
|
|
|
module IssuesHelper
|
2011-11-08 22:02:57 +01:00
|
|
|
def sort_class
|
|
|
|
if can?(current_user, :admin_issue, @project) && (!params[:f] || params[:f] == "0")
|
|
|
|
"handle"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-11-07 13:12:46 +01:00
|
|
|
def project_issues_filter_path project, params = {}
|
|
|
|
params[:f] ||= cookies['issue_filter']
|
|
|
|
project_issues_path project, params
|
|
|
|
end
|
2011-10-08 23:36:38 +02:00
|
|
|
end
|