Sha256: b64cb9b607b0fe7b82af19ea219273af55bf8fafff03821097811af86c3acd05

Contents?: true

Size: 792 Bytes

Versions: 4

Compression:

Stored size: 792 Bytes

Contents

- cuser = current_user

= render partial: 'the_comments/slim/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

Version Path
fuck_comments-2.3.4 app/views/the_comments/slim/_sidebar_admin.html.slim
the_comments_ruby-2.3.4 app/views/the_comments/slim/_sidebar_admin.html.slim
the_comments_ruby-2.3.3 app/views/the_comments/slim/_sidebar_admin.html.slim
the_comments-2.3.1 app/views/the_comments/slim/_sidebar_admin.html.slim