2014-09-02 18:07:02 +05:30
|
|
|
module TagsHelper
|
2015-04-26 12:48:37 +05:30
|
|
|
def tag_path(tag)
|
2014-09-02 18:07:02 +05:30
|
|
|
"/tags/#{tag}"
|
|
|
|
end
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
def tag_list(project)
|
2014-09-02 18:07:02 +05:30
|
|
|
html = ''
|
|
|
|
project.tag_list.each do |tag|
|
2015-04-26 12:48:37 +05:30
|
|
|
html << link_to(tag, tag_path(tag))
|
2014-09-02 18:07:02 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
html.html_safe
|
|
|
|
end
|
|
|
|
end
|