Merge branch 'issue-184' into dev
Conflicts: app/views/layouts/project.html.haml app/views/projects/_form.html.haml
This commit is contained in:
commit
1d85197b08
9 changed files with 81 additions and 39 deletions
15
app/helpers/tags_helper.rb
Normal file
15
app/helpers/tags_helper.rb
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue