Sha256: ed99c6a5fda5bf13b706473fb657c6b9804397c5aa6518089c90f917983ca497
Contents?: true
Size: 1.3 KB
Versions: 11
Compression:
Stored size: 1.3 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>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 %> </section> <% end %>
Version data entries
11 entries across 11 versions & 1 rubygems