Sha256: 5a80ae7d68261a1d1f2d9ff8c3d58cebde14b7e7a643218eca5418f699007c37
Contents?: true
Size: 1.67 KB
Versions: 3
Compression:
Stored size: 1.67 KB
Contents
- cuser = current_user .panel.panel-primary .panel-heading= t "the_comments.nav.header" .panel-body %p= link_to raw(t('the_comments.back_to_root')), '/' %hr %h5= t 'the_comments.incoming' %ul %li= link_to t("the_comments.draft_comments", num: cuser.draft_comcoms_count), [:draft, :comments] %li= link_to t("the_comments.published_comments", num: cuser.published_comcoms_count), [:published, :comments] %li= link_to t("the_comments.deleted_comments", num: cuser.deleted_comcoms_count), [:deleted, :comments] %li= link_to t("the_comments.spam_comments", num: cuser.spam_comcoms_count), [:spam, :comments] %h5= t 'the_comments.written_by_me' %ul %li= link_to t("the_comments.draft_comments", num: cuser.my_draft_comments.count), [:my_draft, :comments] %li= link_to t("the_comments.published_comments", num: cuser.my_published_comments.count), [:my_published, :comments] %li= link_to t("the_comments.my_comments", num: cuser.my_comments_count), [:my_comments, :comments] - if cuser.comments_admin? %h5= t 'the_comments.in_system' %ul %li= link_to t("the_comments.draft_comments", num: Comment.with_state(:draft).count), [:total_draft, :comments] %li= link_to t("the_comments.published_comments", num: Comment.with_state(:published).count), [:total_published, :comments] %li= link_to t("the_comments.deleted_comments", num: Comment.with_state(:deleted).count), [:total_deleted, :comments] %li= link_to t("the_comments.spam_comments", num: Comment.where(spam: true).count), [:total_spam, :comments]
Version data entries
3 entries across 3 versions & 1 rubygems