Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-06-25 14:30:57 +0400
committerMarin Jankovski <marin@gitlab.com>2014-06-30 11:44:30 +0400
commitaaba993352d65ad645215083cd6a4a46006f4b32 (patch)
treea871d7ef68adc7f03950de5c7e5ef66de5875ae9 /app/helpers/groups_helper.rb
parentca6fd8841e3bf1d6db9370fd7aa7934b320550e4 (diff)
Skeleton of the group milestone index page.
Diffstat (limited to 'app/helpers/groups_helper.rb')
-rw-r--r--app/helpers/groups_helper.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb
index cfc9a572cac..0762a6925b3 100644
--- a/app/helpers/groups_helper.rb
+++ b/app/helpers/groups_helper.rb
@@ -31,6 +31,18 @@ module GroupsHelper
end
title
+ end
+
+ def group_filter_path(entity, options={})
+ exist_opts = {
+ state: params[:state],
+ scope: params[:scope]
+ }
+
+ options = exist_opts.merge(options)
+ path = request.path
+ path << "?#{options.to_param}"
+ path
end
end