Sha256: 3b19b1031da8d9d16752fac195dd0da85642b0253694c28cb15cf3327a3fd5ff

Contents?: true

Size: 486 Bytes

Versions: 25

Compression:

Stored size: 486 Bytes

Contents

<% if administrator? %>

  <% content_for :admin_context_menu do %>

    <h2><%= t('admin_section') %></h2>
    <ul class="list-group">
      <li class="list-group-item"><%= link_to t('admin_panel'), pages_path %></li>
      <%= content_tag :li, link_to( "#{t('activerecord.models.comments').capitalize} <span class='badge'>#{Comment.pending.count}</span>".html_safe, pending_comments_path ), class: 'list-group-item' if Comment.pending.count > 0 %>
    </ul>

  <% end -%>

<% end -%>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
tkh_content-0.10.10 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.10.9 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.10.8 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.10.7 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.10.6 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.10.5.1 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.10.5 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.10.4 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.10.3 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.10.2 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.10.1 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.10 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.9.20 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.9.19 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.9.18 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.9.17 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.9.16 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.9.15 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.9.14 app/views/blog/_admin_context_menu.html.erb
tkh_content-0.9.13 app/views/blog/_admin_context_menu.html.erb