From 11b7be5c41edda171a05e92295c51320cb315c68 Mon Sep 17 00:00:00 2001 From: David Gay Date: Thu, 2 Nov 2023 18:43:53 -0400 Subject: Update checkpoints to have comment instead of title+desc, and display them --- app/views/runs/show.html.erb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'app/views/runs') 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 @@

Checkpoints

<%= link_to "New checkpoint", new_run_checkpoint_path(@run) %> -
- <% @run.checkpoints.each do |checkpoint| %> + <% @run.checkpoints.order(:created_at).reverse.each do |checkpoint| %> +
<%= time_ago_in_words(checkpoint.created_at) %> ago by @@ -38,7 +38,10 @@ (No save file attached.) <% end %>
+ <% if checkpoint.comment %> +
<%= checkpoint.comment %>
+ <% end %>
- <% end %> -
+
+ <% end %> -- cgit v1.2.3