|
|
@ -1,8 +1,10 @@
|
|
|
|
<div class="enroll-b">
|
|
|
|
<div class="enroll-b">
|
|
|
|
<div class="enroll-t" style="background:url(<%= @competition.identifier == 'gcc-dev-2018' ? '/images/educoder/competition/dev.jpg' : '/images/educoder/competition/anon.jpg' %>) no-repeat top center;">
|
|
|
|
<div class="enroll-t" style="background:url('/images/educoder/competition/anon.png') no-repeat top center;">
|
|
|
|
<div class="educontent">
|
|
|
|
<div class="educontent">
|
|
|
|
|
|
|
|
<p class="main_title"><%= @competition.name %></p>
|
|
|
|
<% if @minimum_staff > 1 %>
|
|
|
|
<% if @minimum_staff > 1 %>
|
|
|
|
<p class="clearfix edu-txt-right mb30">
|
|
|
|
<p class="sub_title"><%= @competition.sub_title %></p>
|
|
|
|
|
|
|
|
<p class="edu-txt-right inline mt20">
|
|
|
|
<% unless User.current.logged? %>
|
|
|
|
<% unless User.current.logged? %>
|
|
|
|
<%= link_to "创建战队", signin_path, :remote => true, :class => "enroll-in-b enroll-in-b-green fr" %>
|
|
|
|
<%= link_to "创建战队", signin_path, :remote => true, :class => "enroll-in-b enroll-in-b-green fr" %>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
@ -16,8 +18,7 @@
|
|
|
|
<a onclick="notice_box('报名已截止')" class="enroll-in-b enroll-in-b-green fr">创建战队</a>
|
|
|
|
<a onclick="notice_box('报名已截止')" class="enroll-in-b enroll-in-b-green fr">创建战队</a>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p class="clearfix edu-txt-right">
|
|
|
|
|
|
|
|
<% unless User.current.logged? %>
|
|
|
|
<% unless User.current.logged? %>
|
|
|
|
<%= link_to "加入战队", signin_path, :remote => true, :class => "enroll-in-b fr" %>
|
|
|
|
<%= link_to "加入战队", signin_path, :remote => true, :class => "enroll-in-b fr" %>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
@ -35,8 +36,9 @@
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<!--个人报名-->
|
|
|
|
<!--个人报名-->
|
|
|
|
<% unless User.current.logged? %>
|
|
|
|
<% unless User.current.logged? %>
|
|
|
|
<%= link_to "立即报名", signin_path, :remote => true, :class => "enroll-in-b enroll-in-b-green fr" %>
|
|
|
|
<p class="edu-txt-right inline mt20"><%= link_to "立即报名", signin_path, :remote => true, :class => "enroll-in-b fr" %></p>
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
|
|
|
|
<p class="edu-txt-right inline mt20">
|
|
|
|
<% unless @competition.enroll_end_time.present? && @competition.enroll_end_time < Time.now %>
|
|
|
|
<% unless @competition.enroll_end_time.present? && @competition.enroll_end_time < Time.now %>
|
|
|
|
<% if @is_enroll.present? %>
|
|
|
|
<% if @is_enroll.present? %>
|
|
|
|
<a href="javascript:void(0)" onclick="notice_box('您已报名')" class="enroll-in-b enroll-in-b-green fr">立即报名</a>
|
|
|
|
<a href="javascript:void(0)" onclick="notice_box('您已报名')" class="enroll-in-b enroll-in-b-green fr">立即报名</a>
|
|
|
@ -46,6 +48,7 @@
|
|
|
|
<% else %>
|
|
|
|
<% else %>
|
|
|
|
<a onclick="notice_box('报名已截止')" class="enroll-in-b enroll-in-b-green fr">立即报名</a>
|
|
|
|
<a onclick="notice_box('报名已截止')" class="enroll-in-b enroll-in-b-green fr">立即报名</a>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|