<div class="small-12 column">
  <table>
    <tbody>
      <tr>
        <td>
          <%= moderator.name %>
        </td>
        <td>
          <%= moderator.email %>
        </td>
        <td class="text-right">
          <% if moderator.persisted? %>
            <%= link_to t('admin.moderators.moderator.delete'),
                        admin_moderator_path(moderator),
                        method: :delete,
                        class: "button hollow alert" %>
          <% else %>
            <%= link_to t('admin.moderators.moderator.add'),{ controller: "admin/moderators", action: :create, user_id: moderator.user_id },
                        method: :post,
                        class: "button success" %>
          <% end %>
        </td>
      </tr>
    </tbody>
  </table>
</div>
