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/home | |
parent | 52d46329e525133077b4f116c9e608128d8ba982 (diff) |
Checkpoint kinds: comment, checkin, checkout
Diffstat (limited to 'app/views/home')
-rw-r--r-- | app/views/home/index.html.erb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 457200c..a961565 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -9,7 +9,10 @@ <li>At <%= checkpoint.created_at %> <%= checkpoint.user.name %> checked in a save for <%= link_to checkpoint.run.title, run_path(checkpoint.run) %> (<%= checkpoint.run.game.title %>) - <%= 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> </div> |