Mods

<%= form_with url: admin_mods_path, method: :get, local: true, class: "flex mt-4 mx-auto m:ml-auto m:mt-0" do |f| %>
<%= f.text_field :search, value: params[:search], class: "crayons-textfield", aria: { label: "Search" } %> <%= f.hidden_field :state, value: params[:state] if params[:state].present? %>
<%= f.submit "Search", class: "crayons-btn" %> <% end %>
<% if @mods.empty? %>
There are no mods matching your search criteria.
<% else %> <%= paginate @mods, theme: "internal" %> <% if params[:state] == "potential" %> <% end %> <% @mods.each do |mod| %> <% if params[:state] == "potential" %> <% end %> <% end %>
ID Profile Comments Badges Last CommentAction
<%= mod.id %> <%= link_to mod.username, admin_user_path(mod.id) %> <%= mod.comments_count %> <%= mod.badge_achievements_count %> <%= time_ago_in_words mod.last_comment_at %> ago <%= form_with model: [:admin, mod], url: admin_mod_path(mod.id), method: :patch, local: true do |f| %> <%= f.submit "Make Trusted", class: "crayons-btn crayons-btn--secondary js-add-to-mod-channel" %> <% end %>
<%= paginate @mods, theme: "internal" %> <% end %>