Changes tags styles
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
module ApplicationHelper
|
module ApplicationHelper
|
||||||
|
|
||||||
def tags(debate)
|
def tags(debate)
|
||||||
debate.tag_list.sort.map { |tag| link_to sanitize(tag), debates_path(tag: tag) }.join(', ').html_safe
|
debate.tag_list.sort.map { |tag| link_to sanitize(tag), debates_path(tag: tag) }.join('').html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
def percentage(vote, debate)
|
def percentage(vote, debate)
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<% if debate.tags.any? %>
|
<% if debate.tags.any? %>
|
||||||
<i class="fi-price-tag"></i> <span class='tags'><%= tags(debate) %></span>
|
<span class='tags'><%= tags(debate) %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
Reference in New Issue
Block a user