summaryrefslogtreecommitdiff
path: root/app/helpers/dashboard_helper.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-21 08:24:05 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-21 08:24:05 +0300
commit23734a715e622f3f028bd565df3be130d3aba737 (patch)
tree2e3ad753e3ddafbde6da4e8bcf393ad8d5bf9c0e /app/helpers/dashboard_helper.rb
parent899afd0067065be6b15d7b737100b82757421828 (diff)
downloadgitlab-ce-23734a715e622f3f028bd565df3be130d3aba737.tar.gz
Dashboard filters for events
Diffstat (limited to 'app/helpers/dashboard_helper.rb')
-rw-r--r--app/helpers/dashboard_helper.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb
new file mode 100644
index 00000000000..b73c1c1e1c2
--- /dev/null
+++ b/app/helpers/dashboard_helper.rb
@@ -0,0 +1,10 @@
+module DashboardHelper
+ def dashboard_filter_path(entity, options={})
+ case entity
+ when 'issue' then
+ dashboard_issues_path(options)
+ when 'merge_request'
+ dashboard_merge_requests_path(options)
+ end
+ end
+end