From 9a1f9abf84fb552025dc3e7fe0c7d794dbbefd03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 10 Feb 2024 12:53:26 +0100 Subject: [PATCH] Formatting --- app/views/admin/users/show.html.erb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/views/admin/users/show.html.erb b/app/views/admin/users/show.html.erb index ca0cd09..bb27846 100644 --- a/app/views/admin/users/show.html.erb +++ b/app/views/admin/users/show.html.erb @@ -53,14 +53,15 @@ custom_class: "text-green-600 hover:text-green-500 -mt-2 -mb-1 h-6 w-6 inline-block" } %> - <% if @user.invitations.unused.count > 0 %> - <%= link_to invitations_admin_user_path(@user.cn), data: { - turbo_method: :delete, - turbo_confirm: "Delete all of #{@user.cn}'s available invitations?" - } do %> - <%= render partial: "icons/x-circle", locals: { - custom_class: "text-red-600 hover:text-red-500 -mt-2 -mb-1 h-6 w-6 inline-block" - } %> + <% if @user.invitations.unused.count > 0 %> + <%= link_to invitations_admin_user_path(@user.cn), + id: "remove-invitations", data: { + turbo_method: :delete, + turbo_confirm: "Delete all of #{@user.cn}'s available invitations?" + } do %> + <%= render partial: "icons/x-circle", locals: { + custom_class: "text-red-600 hover:text-red-500 -mt-2 -mb-1 h-6 w-6 inline-block" + } %> <% end %> <% end %>