2012-11-21 05:24:05 +00:00
|
|
|
module DashboardHelper
|
2013-12-29 10:58:00 +00:00
|
|
|
def projects_dashboard_filter_path(options={})
|
|
|
|
exist_opts = {
|
|
|
|
sort: params[:sort],
|
|
|
|
scope: params[:scope],
|
|
|
|
group: params[:group],
|
2015-01-06 21:09:56 +00:00
|
|
|
tag: params[:tag],
|
|
|
|
visibility_level: params[:visibility_level],
|
2013-12-29 10:58:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
options = exist_opts.merge(options)
|
|
|
|
|
|
|
|
path = request.path
|
|
|
|
path << "?#{options.to_param}"
|
|
|
|
path
|
|
|
|
end
|
2014-07-10 14:54:31 +00:00
|
|
|
|
2014-12-26 16:33:53 +00:00
|
|
|
def assigned_issues_dashboard_path
|
|
|
|
issues_dashboard_path(assignee_id: current_user.id)
|
2014-07-10 14:54:31 +00:00
|
|
|
end
|
|
|
|
|
2014-12-26 16:33:53 +00:00
|
|
|
def assigned_mrs_dashboard_path
|
|
|
|
merge_requests_dashboard_path(assignee_id: current_user.id)
|
2014-07-10 14:54:31 +00:00
|
|
|
end
|
2012-11-21 05:24:05 +00:00
|
|
|
end
|