<%= @competition.name %>
<% if @maximum_staff > 1 %><%= @competition.sub_title %>
<% if !User.current.logged? %> <%= link_to "创建战队", signin_path, :remote => true, :class => "enroll-in-b enroll-in-b-green fr" %> <% elsif !User.current.try(:profile_completed?) %> <%= link_to "创建战队", 'javascript:void(0)', :class => "enroll-in-b enroll-in-b-green fr", onclick: "userProfileModal()" %> <% else %> <% unless @competition.enroll_end_time.present? && @competition.enroll_end_time < Time.now %> <% if !@can_enroll %> 创建战队 <% else %> 创建战队 <% end %> <% else %> 创建战队 <% end %> <% end %> <% if !User.current.logged? %> <%= link_to "加入战队", signin_path, :remote => true, :class => "enroll-in-b fr" %> <% elsif !User.current.try(:profile_completed?) %> <%= link_to "加入战队", 'javascript:void(0)', :class => "enroll-in-b fr", onclick: "userProfileModal()" %> <% else %> <% unless @competition.enroll_end_time.present? && @competition.enroll_end_time < Time.now %> <% if !@can_enroll %> 加入战队 <% 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 !@can_enroll %> 立即报名 <% 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 %>您还未参与报名哦,赶紧来挑战吧~
还没有人报名~