Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 6c1ebea6 rédigé par Benjamin Neff's avatar Benjamin Neff
Parcourir les fichiers

Merge pull request #7483 from Flaburgan/7393-always-link-comment-mobile

Always link comment count text on mobile
parents 3817dc9a fc276404
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -43,15 +43,12 @@ module MobileHelper ...@@ -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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter