Sha256: 4abb2f88ccd8dbf998fea79b6ff2b8980614c2b2d7f773de1ba6c6273f7d1ea9

Contents?: true

Size: 1.65 KB

Versions: 3

Compression:

Stored size: 1.65 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

Version Path
the_comments-2.2.2 app/views/the_comments/slim/_sidebar.html.slim
the_comments-2.2.1 app/views/the_comments/slim/_sidebar.html.slim
the_comments-2.2.0 app/views/the_comments/slim/_sidebar.html.slim