Do not show join contest header

This commit is contained in:
Ari Timonen 2020-04-19 04:20:31 +03:00
parent ae1e2ef833
commit 2a21f70603

View file

@ -26,9 +26,9 @@
<%= link_to 'Edit Contest', edit_contest_path(@contest), class: 'button' %> <%= link_to 'Edit Contest', edit_contest_path(@contest), class: 'button' %>
<% end %> <% end %>
<% if @contest.can_join?(cuser) %>
<h4>Join Contest</h4> <h4>Join Contest</h4>
<% if @contest.can_join?(cuser) %>
<%= form_for @contest.contesters.build, html: { class: 'square' } do |f| %> <%= form_for @contest.contesters.build, html: { class: 'square' } do |f| %>
<%= f.hidden_field :contest_id %> <%= f.hidden_field :contest_id %>