summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2023-11-02 17:41:54 -0400
committerDavid Gay <david@davidgay.org>2023-11-02 17:41:54 -0400
commit1bf6e9fdd7c55d276738c09a0de6943ba8b52afb (patch)
treeb3dde60ff6fe0c12c6f45d757e016d49e82d7130 /app
parentfe809407de386c0db93dbbc741512e988a6dc2a3 (diff)
Link to start a run
Diffstat (limited to 'app')
-rw-r--r--app/views/runs/index.html.erb2
-rw-r--r--app/views/users/show.html.erb2
2 files changed, 4 insertions, 0 deletions
diff --git a/app/views/runs/index.html.erb b/app/views/runs/index.html.erb
index 3b152c7..9f01859 100644
--- a/app/views/runs/index.html.erb
+++ b/app/views/runs/index.html.erb
@@ -9,6 +9,8 @@
the save file and then another player can checkout the save file. In this way, multiple players can take
turns playing the same run!</p>
+ <p><%= link_to "Start a run", new_run_path %></p>
+
<h2>List of runs</h2>
<ul class="list-disc">
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 34308b1..f0335eb 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -15,6 +15,8 @@
<h2><%= pluralize(@user.runs.count, "run") %></h2>
+ <p><%= link_to "Start a run", new_run_path %></p>
+
<ul class="list-disc">
<% @user.runs.each do |run| %>
<li><%= run.game.title %> - <%= link_to run.title, run_path(run) %></li>