diff options
author | David Gay <david@davidgay.org> | 2023-11-02 17:55:57 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2023-11-02 17:55:57 -0400 |
commit | 755bfe6da54ed67a759f26ba4c328a2e8175b2f6 (patch) | |
tree | 805c73fdacbc933a902bcd8cb756cf1cb387ef81 /app | |
parent | 5f3ba79ee71455ea93cc4e7e2b6969048b3c9805 (diff) |
Checkpoint#show structure
Diffstat (limited to 'app')
-rw-r--r-- | app/views/runs/show.html.erb | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/app/views/runs/show.html.erb b/app/views/runs/show.html.erb index 832889a..24f551a 100644 --- a/app/views/runs/show.html.erb +++ b/app/views/runs/show.html.erb @@ -1,18 +1,20 @@ -<h1 class="text-2xl"><%= @run.title %></h1> -<p class="subtitle"><%= @run.game.title %></p> +<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 %></p> + <p>Run started by: <%= @run.user.name || "Unknown trainer" %></p> -<%= link_to "New checkpoint", new_run_checkpoint_path(@run) %> -<h2 class="text-xl">Checkpoints</h2> + <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> + <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> |