+ |
+ <%= user.name %>
+ |
+
+ <% if user.hidden? %>
+ <%= t("moderation.users.index.hidden") %>
+ <% else %>
+ <%= render Admin::TableActionsComponent.new(user, actions: []) do |actions| %>
+ <%= actions.action(
+ :hide,
+ text: t("moderation.users.index.hide"),
+ confirm: ->(name) { t("moderation.users.index.confirm_hide", name: name) },
+ method: :put
+ ) %>
+ <%= actions.action(
+ :block,
+ text: t("moderation.users.index.block"),
+ confirm: ->(name) { t("moderation.users.index.confirm_block", name: name) },
+ method: :put
+ ) %>
+ <% end %>
+ <% end %>
+ |
+
+ <% end %>
+