diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 15:09:15 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 15:09:15 +0000 |
commit | 536aa3a1f4b96abc4ca34489bf2cbe503afcded7 (patch) | |
tree | 88d08f7dfa29a32d6526773c4fe0fefd9f2bc7d1 /app/helpers/explore_helper.rb | |
parent | 50ae4065530c4eafbeb7c5ff2c462c48c02947ca (diff) | |
download | gitlab-ce-536aa3a1f4b96abc4ca34489bf2cbe503afcded7.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/explore_helper.rb')
-rw-r--r-- | app/helpers/explore_helper.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/helpers/explore_helper.rb b/app/helpers/explore_helper.rb index 62be591ec47..1b36f60c316 100644 --- a/app/helpers/explore_helper.rb +++ b/app/helpers/explore_helper.rb @@ -19,6 +19,18 @@ module ExploreHelper request_path_with_options(options) end + def filter_audit_path(options = {}) + exist_opts = { + entity_type: params[:entity_type], + entity_id: params[:entity_id], + created_before: params[:created_before], + created_after: params[:created_after], + sort: params[:sort] + } + options = exist_opts.merge(options).delete_if { |key, value| value.blank? } + request_path_with_options(options) + end + def filter_groups_path(options = {}) request_path_with_options(options) end |