Module: Blogit::Admin::CommentsHelper
- Defined in:
- app/helpers/blogit/admin/comments_helper.rb
Instance Method Summary collapse
Instance Method Details
#comments_count_for_post(post) ⇒ Object
6 7 8 |
# File 'app/helpers/blogit/admin/comments_helper.rb', line 6 def comments_count_for_post(post) "0 comments" end |
#name_tag_for_comment(comment) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/helpers/blogit/admin/comments_helper.rb', line 10 def name_tag_for_comment(comment) comment_name = t(:wrote, scope: 'blogit.admin.comments', name: comment.name) if comment.website? link_to(comment_name, comment.website, name: comment.website, target: "_blank") else comment_name end end |