From 47be31b415f33efbe73055fd0bb297e88f758731 Mon Sep 17 00:00:00 2001 From: David Gay Date: Tue, 31 Oct 2023 02:04:58 -0400 Subject: Checkpoint kinds: comment, checkin, checkout --- app/views/home/index.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/views/home') 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 @@
  • 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") %>
  • + <% if checkpoint.save_file.attached? %> + <%= link_to "[save file]", rails_blob_path(checkpoint.save_file, disposition: "attachment") %> + <% end %> + <% end %> -- cgit v1.2.3