diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-06 21:12:01 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-08-06 21:12:01 +0300 |
commit | 512cd02335de9de22aab688743a01fa868229f0d (patch) | |
tree | 6996e941f796450bcb25150f502eb861bddeeaf4 /app/helpers/dashboard_helper.rb | |
parent | 21c70354f609c292d302c433f9f9bcea31674ab9 (diff) | |
download | gitlab-ce-512cd02335de9de22aab688743a01fa868229f0d.tar.gz |
Dashboard/Group issues and mr pages refactoring
Diffstat (limited to 'app/helpers/dashboard_helper.rb')
-rw-r--r-- | app/helpers/dashboard_helper.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb index e3be07c9fe0..35c7bcbd2cf 100644 --- a/app/helpers/dashboard_helper.rb +++ b/app/helpers/dashboard_helper.rb @@ -1,5 +1,5 @@ module DashboardHelper - def dashboard_filter_path(entity, options={}) + def filter_path(entity, options={}) exist_opts = { status: params[:status], project_id: params[:project_id], @@ -7,12 +7,9 @@ module DashboardHelper options = exist_opts.merge(options) - case entity - when 'issue' then - issues_dashboard_path(options) - when 'merge_request' - merge_requests_dashboard_path(options) - end + path = request.path + path << "?#{options.to_param}" + path end def entities_per_project project, entity |