gitlab-org--gitlab-foss/app/helpers/tags_helper.rb

15 lines
217 B
Ruby
Raw Normal View History

module TagsHelper
def tag_path(tag)
"/tags/#{tag}"
end
2011-11-07 17:48:58 +00:00
def tag_list(project)
html = ''
project.tag_list.each do |tag|
2014-10-09 07:47:47 +00:00
html << link_to(tag, tag_path(tag))
end
2011-11-07 17:48:58 +00:00
html.html_safe
end
end