diff options
author | Aleksei Kvitinskii <aleksei.wm@gmail.com> | 2011-11-07 19:48:58 +0200 |
---|---|---|
committer | Aleksei Kvitinskii <aleksei.wm@gmail.com> | 2011-11-07 19:48:58 +0200 |
commit | af7bed2aa5476ca6f359f0b0c67f46151b5db9b9 (patch) | |
tree | 2a36399477444f1b58da62fe6987d7382d51ff17 /app/helpers/tags_helper.rb | |
parent | 060a2e225755aedc99a8cdbc5fae8296daa7a958 (diff) | |
download | gitlab-ce-af7bed2aa5476ca6f359f0b0c67f46151b5db9b9.tar.gz |
add tag links to project page
Diffstat (limited to 'app/helpers/tags_helper.rb')
-rw-r--r-- | app/helpers/tags_helper.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/tags_helper.rb b/app/helpers/tags_helper.rb index 1e82e34d8c7..5c1ecc8689b 100644 --- a/app/helpers/tags_helper.rb +++ b/app/helpers/tags_helper.rb @@ -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 |