diff options
Diffstat (limited to 'app/views/runs/show.html.erb')
-rw-r--r-- | app/views/runs/show.html.erb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/runs/show.html.erb b/app/views/runs/show.html.erb index adb41e4..11fdd12 100644 --- a/app/views/runs/show.html.erb +++ b/app/views/runs/show.html.erb @@ -2,3 +2,14 @@ <p class="subtitle"><%= @run.game.title %></p> <p>Run started by: <%= @run.user.email %></p> + +<%= link_to "New checkpoint", new_run_checkpoint_path(@run) %> + +<h2 class="text-xl">Checkpoints</h2> + +<ul class="list-disc"> + <% @run.checkpoints.each do |checkpoint| %> + <li><%= checkpoint.created_at %> + <%= link_to "[save file]", rails_blob_path(checkpoint.save_file, disposition: "attachment") %></li> + <% end %> +</ul> |