summaryrefslogtreecommitdiff
path: root/app/views/runs/show.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/runs/show.html.erb')
-rw-r--r--app/views/runs/show.html.erb11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/views/runs/show.html.erb b/app/views/runs/show.html.erb
index d7d65b6..55bef02 100644
--- a/app/views/runs/show.html.erb
+++ b/app/views/runs/show.html.erb
@@ -23,8 +23,8 @@
<h2 class="text-xl">Checkpoints</h2>
<%= link_to "New checkpoint", new_run_checkpoint_path(@run) %>
- <div class="border-l border-orange-900 p-2">
- <% @run.checkpoints.each do |checkpoint| %>
+ <% @run.checkpoints.order(:created_at).reverse.each do |checkpoint| %>
+ <div class="border-l border-orange-900 p-2">
<div class="flex flex-col">
<div>
<%= time_ago_in_words(checkpoint.created_at) %> ago by
@@ -38,7 +38,10 @@
<span>(No save file attached.)</span>
<% end %>
</div>
+ <% if checkpoint.comment %>
+ <div><%= checkpoint.comment %></div>
+ <% end %>
</div>
- <% end %>
- </div>
+ </div>
+ <% end %>
</div>