<%= @competition.name %>
<% if @minimum_staff > 1 %><%= @competition.sub_title %>
<% unless User.current.logged? %> <%= link_to "创建战队", signin_path, :remote => true, :class => "enroll-in-b enroll-in-b-green fr" %> <% else %> <% unless @competition.enroll_end_time.present? && @competition.enroll_end_time < Time.now %> <% if @is_enroll.present? && !@user.is_teacher %> 创建战队 <% else %> 创建战队 <% end %> <% else %> 创建战队 <% end %> <% end %> <% unless User.current.logged? %> <%= link_to "加入战队", signin_path, :remote => true, :class => "enroll-in-b fr" %> <% else %> <% unless @competition.enroll_end_time.present? && @competition.enroll_end_time < Time.now %> <% if @is_enroll.present? && !@user.is_teacher %> 加入战队 <% else %> 加入战队 <% end %> <% else %> 加入战队 <% end %> <% end %>
<% else %> <% unless User.current.logged? %><%= link_to "立即报名", signin_path, :remote => true, :class => "enroll-in-b fr" %>
<% else %><% unless @competition.enroll_end_time.present? && @competition.enroll_end_time < Time.now %> <% if @is_enroll.present? %> 立即报名 <% else %> <%= link_to "立即报名", personal_enroll_competition_teams_path(:com_id => @competition.id), :remote => true, :class => "enroll-in-b enroll-in-b-green fr" %> <% end %> <% else %> 立即报名 <% end %>
<% end %> <% end %>您还未指定指导老师,将造成成绩无效
<% end %>您还未参与报名哦,赶紧来挑战吧~
您还未参与报名哦,赶紧来挑战吧~