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