parent
c95a61fc05
commit
b483ff56c6
@ -1,7 +1,9 @@
|
||||
<p style="color: green"><%= notice %></p>
|
||||
<% if not notice.nil? %><p style="color: green"><%= notice %></p><% end %>
|
||||
|
||||
<%= render "form", machine: @machine %>
|
||||
|
||||
<div>
|
||||
<%= button_to "Delete #{@machine.name}", @machine, method: :delete %>
|
||||
<%= link_to "Delete #{@machine.name} ❌", @machine, data: {
|
||||
turbo_method: :delete,
|
||||
turbo_confirm: "Are you sure you want to remove #{@machine.name}?"} %>
|
||||
</div>
|
||||
|
@ -1,3 +1,3 @@
|
||||
<h1>Knockout</h1>
|
||||
<p>To start the tournament, add players and make sure that the pins are up to date. Then hit randomize to automatically pick teams!</p>
|
||||
<p>The source code for this app can be found <a href="https://tildegit.org/ben/pinrails">here</a>.</p>
|
||||
<p>The source code for this app can be found <%= link_to 'here', "#{GIT_REPO}/src/commit/#{GIT_SHA}" %>.</p>
|
||||
|
@ -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>
|
||||
|
@ -0,0 +1,2 @@
|
||||
GIT_SHA = `git rev-parse HEAD`.chomp
|
||||
GIT_REPO = 'https://tildegit.org/ben/pinrails'
|
Loading…
Reference in new issue