Always link comment count text on mobile
This commit is contained in:
parent
d62d79bc29
commit
fc27640468
1 changed files with 6 additions and 9 deletions
|
|
@ -43,15 +43,12 @@ module MobileHelper
|
||||||
entypo_class = "entypo-chevron-down"
|
entypo_class = "entypo-chevron-down"
|
||||||
end
|
end
|
||||||
|
|
||||||
if post.comments_count > 0
|
link_to safe_join([
|
||||||
link_to "#{t('admins.stats.comments', count: post.comments_count)}<i class='#{entypo_class}'></i>".html_safe,
|
t("admins.stats.comments", count: post.comments_count),
|
||||||
post_comments_path(post, format: "mobile"),
|
content_tag(:i, nil, class: entypo_class)
|
||||||
class: "show-comments #{klass}"
|
]),
|
||||||
else
|
post_comments_path(post, format: "mobile"),
|
||||||
html = "<span class='show-comments'>"
|
class: "show-comments #{klass}"
|
||||||
html << t("admins.stats.comments", count: post.comments_count)
|
|
||||||
html << "</span>"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def additional_photos
|
def additional_photos
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue