Commit 060a2e22 authored by Aleksei Kvitinskii's avatar Aleksei Kvitinskii

move tag path to the appropriate helper

parent ac9afe0d
module TagsHelper
def tag_path tag
"/tags/#{tag}"
end
end
......@@ -14,7 +14,7 @@
= project.name
.small-tags
- project.tag_list.each do |tag|
= link_to tag, "/tags/#{tag}"
= link_to tag, tag_path(tag)
%td= truncate project.url_to_repo
%td= project.code
......
......@@ -7,5 +7,5 @@
.tags-list
- @tags.all.each do |tag|
= link_to "#{tag.name}(#{tag.count})", "/tags/#{tag.name}"
= link_to "#{tag.name}(#{tag.count})", tag_path(name)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment