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

  <p>Run started by: <%= @run.user.name || "Unknown trainer" %></p>


  <h2 class="text-xl">Checkpoints</h2>
  <%= link_to "New checkpoint", new_run_checkpoint_path(@run) %>

  <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>
</div>