diff options
Diffstat (limited to 'app/views/runs/show.html.erb')
-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> |