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

26 lines
583 B
Ruby
Raw Normal View History

2012-11-21 00:24:05 -05:00
module DashboardHelper
def projects_dashboard_filter_path(options={})
exist_opts = {
sort: params[:sort],
scope: params[:scope],
group: params[:group],
tag: params[:tag],
visibility_level: params[:visibility_level],
}
options = exist_opts.merge(options)
path = request.path
path << "?#{options.to_param}"
path
end
def assigned_issues_dashboard_path
issues_dashboard_path(assignee_id: current_user.id)
end
def assigned_mrs_dashboard_path
merge_requests_dashboard_path(assignee_id: current_user.id)
end
2012-11-21 00:24:05 -05:00
end