diff options
Diffstat (limited to 'app/views/checkpoints/new.html.erb')
-rw-r--r-- | app/views/checkpoints/new.html.erb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/app/views/checkpoints/new.html.erb b/app/views/checkpoints/new.html.erb index b11a9bc..dad7e82 100644 --- a/app/views/checkpoints/new.html.erb +++ b/app/views/checkpoints/new.html.erb @@ -9,10 +9,12 @@ <%= f.text_area :comment %> </div> - <div> - <div><%= f.label :save_file %></div> - <%= f.file_field :save_file %> - </div> + <% unless @run.checked_in? %> + <div> + <div><%= f.label :save_file %></div> + <%= f.file_field :save_file %> + </div> + <% end %> <div> <div> @@ -24,7 +26,7 @@ <%= f.radio_button :kind, "checkout" %> <%= f.label :kind_checkout, "I'm checking out this save file, lock the run until I check it back in" %> </div> - <% else %> + <% elsif @run.checked_out_user == current_user %> <div> <%= f.radio_button :kind, "checkin" %> <%= f.label :kind_checkin, "I'm checking in this save file so another trainer can play it" %> |