diff options
author | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-08-31 13:39:35 +0300 |
---|---|---|
committer | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-08-31 13:42:33 +0300 |
commit | 6c9c33f43e489d9e225bc64342c7d7d0a558b1e7 (patch) | |
tree | a64bef1ae3bef1ab4502cc3bebb8771eb9b571f7 /app/helpers/tags_helper.rb | |
parent | 4d042afeced540c0acd887714d8ec7c962b7c507 (diff) |
filters tags by name
Diffstat (limited to 'app/helpers/tags_helper.rb')
-rw-r--r-- | app/helpers/tags_helper.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/tags_helper.rb b/app/helpers/tags_helper.rb index fb85544df2d..c0ec1634cdb 100644 --- a/app/helpers/tags_helper.rb +++ b/app/helpers/tags_helper.rb @@ -3,6 +3,16 @@ module TagsHelper "/tags/#{tag}" end + def filter_tags_path(options = {}) + exist_opts = { + search: params[:search], + sort: params[:sort] + } + + options = exist_opts.merge(options) + namespace_project_tags_path(@project.namespace, @project, @id, options) + end + def tag_list(project) html = '' project.tag_list.each do |tag| |