Sha256: 79313717f210e471960c00282f852b3912f33f07781dc25c189a5a890da28ab8

Contents?: true

Size: 759 Bytes

Versions: 3

Compression:

Stored size: 759 Bytes

Contents

<% if moderatable_messageboards_ids.present? %>
  <% 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 '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

3 entries across 3 versions & 1 rubygems

Version Path
thredded-0.15.4 app/views/thredded/shared/nav/_moderation.html.erb
thredded-0.15.3 app/views/thredded/shared/nav/_moderation.html.erb
thredded-0.15.2 app/views/thredded/shared/nav/_moderation.html.erb