add tag links to project page

This commit is contained in:
Aleksei Kvitinskii 2011-11-07 19:48:58 +02:00
parent 060a2e2257
commit af7bed2aa5
5 changed files with 30 additions and 6 deletions

View file

@ -2,4 +2,14 @@ module TagsHelper
def tag_path tag
"/tags/#{tag}"
end
def tag_list project
html = ''
project.tag_list.each do |tag|
html += link_to tag, tag_path(tag)
end
html.html_safe
end
end