add tag links to project page
This commit is contained in:
parent
060a2e2257
commit
af7bed2aa5
5 changed files with 30 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue