2015-03-10 18:59:14 -04:00
|
|
|
module ExploreHelper
|
|
|
|
def explore_projects_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)
|
|
|
|
|
2015-08-20 05:59:14 -04:00
|
|
|
path = explore_projects_path
|
2015-03-10 18:59:14 -04:00
|
|
|
path << "?#{options.to_param}"
|
|
|
|
path
|
|
|
|
end
|
|
|
|
end
|