Sha256: 6caa5ea4ce4027fde5889016883a6c642d8b4deec82d56582e5b13fab282aa67

Contents?: true

Size: 752 Bytes

Versions: 5

Compression:

Stored size: 752 Bytes

Contents

<% if thredded_moderator? %>
  <% current = current_page_moderation? %>
  <li class="thredded--user-navigation--item thredded--user-navigation--moderation<%= ' thredded--is-current' if current %>">
    <%= link_to current ? nav_back_path : pending_moderation_path, rel: 'nofollow' do %>
      <%= inline_svg_tag 'thredded/moderation.svg',
                         class: 'thredded--icon',
                         title: t('thredded.nav.moderation') %>
      <span class="thredded--nav-text"><%= t 'thredded.nav.moderation' %></span>
      <% if posts_pending_moderation_count > 0 %>
        <span class="thredded--user-navigation--moderation--pending-count"><%= posts_pending_moderation_count %></span>
      <% end %>
    <% end %>
  </li>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thredded-1.1.0 app/views/thredded/shared/nav/_moderation.html.erb
thredded-1.0.1 app/views/thredded/shared/nav/_moderation.html.erb
thredded-1.0.0 app/views/thredded/shared/nav/_moderation.html.erb
thredded-0.16.16 app/views/thredded/shared/nav/_moderation.html.erb
thredded-0.16.15 app/views/thredded/shared/nav/_moderation.html.erb