| <%= t("admin.moderators.index.name") %> | <%= t("admin.moderators.index.email") %> | <%= t("admin.shared.actions") %> | <% @users.each do |user| %>
|---|---|---|
| <%= user.name %> | <%= user.email %> | <% if user.moderator? && user.moderator.persisted? %> <%= link_to t("admin.moderators.moderator.delete"), admin_moderator_path(user), method: :delete, class: "button hollow alert expanded" %> <% else %> <%= link_to t("admin.moderators.moderator.add"), { controller: "admin/moderators", action: :create, user_id: user }, method: :post, class: "button success expanded" %> <% end %> |