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