summaryrefslogtreecommitdiff
path: root/app/views/runs/show.html.erb
blob: 832889a4c7f6d833c96c92846db1f9becd558f21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<h1 class="text-2xl"><%= @run.title %></h1>
<p class="subtitle"><%= @run.game.title %></p>

<p>Run started by: <%= @run.user.name %></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 %>
      <% if checkpoint.save_file.attached? %>
        <%= link_to "[save file]", rails_blob_path(checkpoint.save_file, disposition: "attachment") %>
      <% end %>
    </li>
  <% end %>
</ul>