gitlabhq/app/helpers/tags_helper.rb

15 lines
214 B
Ruby
Raw Normal View History

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