diff options
author | David Gay <eapoems@riseup.net> | 2023-10-31 02:04:58 -0400 |
---|---|---|
committer | David Gay <eapoems@riseup.net> | 2023-10-31 02:04:58 -0400 |
commit | 47be31b415f33efbe73055fd0bb297e88f758731 (patch) | |
tree | d73604168c4b493b6f1ce4332bd3fab05d33ce5d /app/views/runs | |
parent | 52d46329e525133077b4f116c9e608128d8ba982 (diff) |
Checkpoint kinds: comment, checkin, checkout
Diffstat (limited to 'app/views/runs')
-rw-r--r-- | app/views/runs/show.html.erb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/runs/show.html.erb b/app/views/runs/show.html.erb index eb580ad..832889a 100644 --- a/app/views/runs/show.html.erb +++ b/app/views/runs/show.html.erb @@ -10,6 +10,9 @@ <ul class="list-disc"> <% @run.checkpoints.each do |checkpoint| %> <li><%= checkpoint.created_at %> - <%= link_to "[save file]", rails_blob_path(checkpoint.save_file, disposition: "attachment") %></li> + <% if checkpoint.save_file.attached? %> + <%= link_to "[save file]", rails_blob_path(checkpoint.save_file, disposition: "attachment") %> + <% end %> + </li> <% end %> </ul> |