diff --git a/app/views/admin/administrators/index.html.erb b/app/views/admin/administrators/index.html.erb
index 304760c7e..db08c5933 100644
--- a/app/views/admin/administrators/index.html.erb
+++ b/app/views/admin/administrators/index.html.erb
@@ -29,21 +29,13 @@
<%= administrator.description %>
- <% if administrator.persisted? %>
- <%= link_to t("admin.actions.edit"),
- edit_admin_administrator_path(administrator),
- class: "button hollow" %>
- <%= link_to t("admin.administrators.administrator.delete"),
- admin_administrator_path(administrator),
- method: :delete,
- class: "button hollow alert" %>
- <% else %>
- <%= link_to t("admin.administrators.administrator.add"),
- { controller: "admin/administrators", action: :create,
- user_id: administrator.user_id },
- method: :post,
- class: "button success expanded" %>
- <% end %>
+ <%= link_to t("admin.actions.edit"),
+ edit_admin_administrator_path(administrator),
+ class: "button hollow" %>
+ <%= link_to t("admin.administrators.administrator.delete"),
+ admin_administrator_path(administrator),
+ method: :delete,
+ class: "button hollow alert" %>
|
<% end %>
diff --git a/app/views/admin/managers/index.html.erb b/app/views/admin/managers/index.html.erb
index b9121ac8a..0ff1971c4 100644
--- a/app/views/admin/managers/index.html.erb
+++ b/app/views/admin/managers/index.html.erb
@@ -22,20 +22,10 @@
<%= manager.email %>
- <% if manager.persisted? %>
- <%= link_to t("admin.managers.manager.delete"),
- admin_manager_path(manager),
- method: :delete,
- class: "button hollow alert expanded"
- %>
- <% else %>
- <%= link_to t("admin.managers.manager.add"),
- { controller: "admin/managers",
- action: :create,
- user_id: manager.user_id },
- method: :post,
- class: "button success expanded" %>
- <% end %>
+ <%= link_to t("admin.managers.manager.delete"),
+ admin_manager_path(manager),
+ method: :delete,
+ class: "button hollow alert expanded" %>
|
<% end %>
diff --git a/app/views/admin/moderators/index.html.erb b/app/views/admin/moderators/index.html.erb
index be8eff1ad..770fd77c5 100644
--- a/app/views/admin/moderators/index.html.erb
+++ b/app/views/admin/moderators/index.html.erb
@@ -24,19 +24,10 @@
<%= moderator.email %>
- <% if moderator.persisted? %>
- <%= link_to t("admin.moderators.moderator.delete"),
- admin_moderator_path(moderator),
- method: :delete,
- class: "button hollow alert expanded"
- %>
- <% else %>
- <%= link_to t("admin.moderators.moderator.add"),
- { controller: "admin/moderators", action: :create,
- user_id: moderator.user_id },
- method: :post,
- class: "button success expanded" %>
- <% end %>
+ <%= link_to t("admin.moderators.moderator.delete"),
+ admin_moderator_path(moderator),
+ method: :delete,
+ class: "button hollow alert expanded" %>
|
<% end %>
diff --git a/app/views/admin/officials/index.html.erb b/app/views/admin/officials/index.html.erb
index 67921d3ab..3b1e2b7da 100644
--- a/app/views/admin/officials/index.html.erb
+++ b/app/views/admin/officials/index.html.erb
@@ -28,7 +28,7 @@
<%= t("admin.officials.level_#{official.official_level}") %>
- <%= link_to official.official? ? t("admin.officials.search.edit_official") : t("admin.officials.search.make_official"),
+ <%= link_to t("admin.officials.search.edit_official"),
edit_admin_official_path(official), class: "button hollow expanded" %>
|