Sha256: c34d81371981c2894e882754495050c64fb9c90173c433067a2f973e2b82ee29

Contents?: true

Size: 1.38 KB

Versions: 34

Compression:

Stored size: 1.38 KB

Contents

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

<%= thredded_page do %>
  <section class="thredded--main-section">
    <% 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">
        <caption><%= page_entries_info @users %></caption>
        <thead>
        <tr>
          <th><%= t 'thredded.moderation.user.name' %></th>
          <th><%= t 'thredded.moderation.moderation_state.name' %></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 %>
  </section>
<% end %>

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
thredded-1.1.0 app/views/thredded/moderation/users.html.erb
thredded-1.0.1 app/views/thredded/moderation/users.html.erb
thredded-1.0.0 app/views/thredded/moderation/users.html.erb
thredded-0.16.16 app/views/thredded/moderation/users.html.erb
thredded-0.16.15 app/views/thredded/moderation/users.html.erb
thredded-0.16.14 app/views/thredded/moderation/users.html.erb
thredded-0.16.13 app/views/thredded/moderation/users.html.erb
thredded-0.16.12 app/views/thredded/moderation/users.html.erb
thredded-0.16.11 app/views/thredded/moderation/users.html.erb
thredded-0.16.10 app/views/thredded/moderation/users.html.erb
thredded-0.16.9 app/views/thredded/moderation/users.html.erb
thredded-0.16.8 app/views/thredded/moderation/users.html.erb
thredded-0.16.7 app/views/thredded/moderation/users.html.erb
thredded-0.16.6 app/views/thredded/moderation/users.html.erb
thredded-0.16.5 app/views/thredded/moderation/users.html.erb
thredded-0.16.4 app/views/thredded/moderation/users.html.erb
thredded-0.16.3 app/views/thredded/moderation/users.html.erb
thredded-0.16.1 app/views/thredded/moderation/users.html.erb
thredded-0.16.0 app/views/thredded/moderation/users.html.erb
thredded-0.15.5 app/views/thredded/moderation/users.html.erb