14 lines
525 B
Plaintext
14 lines
525 B
Plaintext
<span><%= moderator.name %></span>
|
|
<span class="bullet"> • </span>
|
|
<span><%= moderator.email %></span>
|
|
<% if moderator.persisted? %>
|
|
<%= link_to t('admin.moderators.moderator.delete'),
|
|
admin_moderator_path(moderator),
|
|
method: :delete,
|
|
class: "button small alert float-right"
|
|
%>
|
|
<% else %>
|
|
<%= link_to t('admin.moderators.moderator.add'),{ controller: "admin/moderators", action: :create, user_id: moderator.user_id },
|
|
method: :post, class: "button small success float-right" %>
|
|
<% end %>
|