plugins/ShinyCMS/app/views/shinycms/admin/users/index.html.erb
<%= render partial: 'admin/includes/search', locals: { placeholder: t( '.search' ), action: shinycms.search_users_path } %>
<table class="table table-responsive-sm table-striped">
<thead>
<tr>
<th>
Username
</th>
<th>
Email
</th>
<th>
</th>
</tr>
</thead>
<tbody>
<% @users.each do |user| %>
<tr>
<td>
<%= user.username %>
</td>
<td>
<%= user.email %>
</td>
<td class="actions">
<% if plugin_loaded? :ShinyProfiles %>
<%= link_to t( 'shiny_profiles.admin.users.index.view_profile' ), shiny_profiles.profile_path( user.username ) %>
<%= link_to t( 'shiny_profiles.admin.users.index.edit_profile' ), shiny_profiles.admin_edit_profile_path( user.profile ) %>
<% end %>
<%= link_to t( '.edit_account' ), shinycms.edit_user_path( user ) %>
<%= link_to t( '.delete_account' ), shinycms.user_path( user ),
method: :delete, data: { confirm: t( 'are_you_sure' ) } %>
</td>
</tr>
<% end %>
<tbody>
</table>
<%= render partial: 'admin/includes/pager', locals: { pagy: @pagy, name: @users.name } %>