Sha256: 095cf6b49605b2dd14fa517e70e5560898d590cba908d700e97ee5261471078a
Contents?: true
Size: 797 Bytes
Versions: 4
Compression:
Stored size: 797 Bytes
Contents
- cuser = current_user = render partial: 'the_comments/haml/sidebar_user' - if cuser.comments_admin? %br %h5= t 'the_comments.in_system', num: Comment.count %p= link_to t("the_comments.published_comments", num: Comment.with_state(:published).count), [:total_published, :comments], class: 'btn btn-success btn-sm' %p= link_to t("the_comments.draft_comments", num: Comment.with_state(:draft).count), [:total_draft, :comments], class: 'btn btn-info btn-sm' %p = link_to t("the_comments.deleted_comments", num: Comment.with_state(:deleted).count), [:total_deleted, :comments], class: 'btn btn-default btn-sm' = link_to t("the_comments.spam_comments", num: Comment.where(spam: true).count), [:total_spam, :comments], class: 'btn btn-default btn-sm'
Version data entries
4 entries across 4 versions & 3 rubygems