diff options
author | Ben Harris <ben@tilde.team> | 2022-01-31 14:28:00 -0500 |
---|---|---|
committer | Ben Harris <ben@tilde.team> | 2022-01-31 14:28:00 -0500 |
commit | b483ff56c663e2d346df8f1f243100007c2c93c9 (patch) | |
tree | c1d44b91cd94005e409be18be2745898c5eb9090 /app/views/players | |
parent | c95a61fc056f6a2d7fdb82f9288948a890a3bac5 (diff) |
tidy up, add git hash to src link
Diffstat (limited to 'app/views/players')
-rw-r--r-- | app/views/players/index.html.erb | 2 | ||||
-rw-r--r-- | app/views/players/show.html.erb | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/app/views/players/index.html.erb b/app/views/players/index.html.erb index eb209b0..a635ded 100644 --- a/app/views/players/index.html.erb +++ b/app/views/players/index.html.erb @@ -18,7 +18,7 @@ <% if player.paid %>✓ <% end %></td> <td><%= player.strikes %></td> - <td><%= link_to "X", player, data: { + <td><%= link_to "❌", player, data: { turbo_method: :delete, turbo_confirm: "Are you sure you want to remove #{player.name}?" } %></td> diff --git a/app/views/players/show.html.erb b/app/views/players/show.html.erb index e031050..3d0bb78 100644 --- a/app/views/players/show.html.erb +++ b/app/views/players/show.html.erb @@ -1,7 +1,9 @@ -<p style="color: green"><%= notice %></p> +<% if not notice.nil? %><p style="color: green"><%= notice %></p><% end %> <%= render "form", player: @player %> <div> - <%= button_to "Delete #{@player.name}", @player, method: :delete %> + <%= link_to "Delete #{@player.name} ❌", @player, data: { + turbo_method: :delete, + turbo_confirm: "Are you sure you want to remove #{@player.name}?"} %> </div> |