diff options
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/tags_helper.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/helpers/tags_helper.rb b/app/helpers/tags_helper.rb new file mode 100644 index 00000000000..5c1ecc8689b --- /dev/null +++ b/app/helpers/tags_helper.rb @@ -0,0 +1,15 @@ +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 |