Sha256: e996f74752ef4d7e471a6e53494b5715f642f8321fce0cac247d8fd3ff9cb755

Contents?: true

Size: 1.13 KB

Versions: 9

Compression:

Stored size: 1.13 KB

Contents

<% content_for :thredded_page_title, t('thredded.nav.moderation') %>
<% content_for :thredded_page_id, 'thredded--moderation-users' %>
<%= render 'nav' %>

<%= thredded_page do %>
  <% if @users.present? %>
    <% if @query.present? %>
      <p class="thredded--alert thredded--alert-success">
        <%= t 'thredded.moderation.search_users.results_message', query: "'#{@query}'" %>
      </p>
    <% end %>
    <table class="thredded--moderation--users-table thredded--table">
      <thead>
      <tr>
        <th>User</th>
        <th>Moderation state</th>
      </tr>
      </thead>
      <tbody>
      <% @users.each do |user| %>
        <tr>
          <td>
            <%= link_to user.thredded_display_name, user_moderation_path(user.id), class: 'thredded--link' %>
          </td>
          <td>
            <%= render 'user_moderation_state', user: user %>
          </td>
        </tr>
      <% end %>
      </tbody>
    </table>
    <%= paginate @users %>
  <% else %>
    <p class="thredded--alert thredded--alert-danger">
      <%= t 'thredded.moderation.search_users.no_results_message', query: "'#{@query}'" %>
    </p>
  <% end %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
thredded-0.10.1 app/views/thredded/moderation/users.html.erb
thredded-0.10.0 app/views/thredded/moderation/users.html.erb
thredded-0.9.4 app/views/thredded/moderation/users.html.erb
thredded-0.9.3 app/views/thredded/moderation/users.html.erb
thredded-0.9.2 app/views/thredded/moderation/users.html.erb
thredded-0.9.1 app/views/thredded/moderation/users.html.erb
thredded-0.8.4 app/views/thredded/moderation/users.html.erb
thredded-0.8.2 app/views/thredded/moderation/users.html.erb
thredded-0.7.0 app/views/thredded/moderation/users.html.erb