2011-11-07 12:40:22 +01:00
|
|
|
module TagsHelper
|
2011-11-09 20:26:24 +01:00
|
|
|
def tag_path tag
|
|
|
|
"/tags/#{tag}"
|
|
|
|
end
|
2011-11-07 18:48:58 +01:00
|
|
|
|
2011-11-09 20:26:24 +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
|
|
|
|
2011-11-09 20:26:24 +01:00
|
|
|
html.html_safe
|
|
|
|
end
|
2011-11-07 12:40:22 +01:00
|
|
|
end
|