|
|
@ -1,65 +1,33 @@
|
|
|
|
<p class="second_1" style="background: url('/images/educoder/competition/qg/qg_two_1.png') no-repeat top center;"></p>
|
|
|
|
<% index = 0 %>
|
|
|
|
<p class="second_2" style="background: url('/images/educoder/competition/qg/qg_two_2.png') no-repeat top center;"></p>
|
|
|
|
<div class="second_1" style="background: url(<%= named_attachment_path(@images.first, @images.first.try(:filename)) %>) no-repeat top center;"></div>
|
|
|
|
<div class="second_3" style="background: url('/images/educoder/competition/qg/qg_two_3.png') no-repeat top center;">
|
|
|
|
<% index += 1 %>
|
|
|
|
|
|
|
|
<div class="second_2" style="background: url(<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>) no-repeat top center;"></div>
|
|
|
|
|
|
|
|
<% index += 1 %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<% @competition.competition_stages.each_with_index do |stage, i| %>
|
|
|
|
|
|
|
|
<div class="second_3" style="background: url(<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>) no-repeat top center;">
|
|
|
|
<div class="enter_panel">
|
|
|
|
<div class="enter_panel">
|
|
|
|
|
|
|
|
<% stage.competition_stage_sections.each do |section| %>
|
|
|
|
<ul class="mb40">
|
|
|
|
<ul class="mb40">
|
|
|
|
<p class="mb30 font-22 enter_title"><span class="mr20 font-bd">第一阶段</span><span>2019-6-25 09:00-2019-7-10 24:00 </span></p>
|
|
|
|
<p class="mb30 font-22 enter_title">
|
|
|
|
|
|
|
|
<span class="mr20 font-bd"><%= section.name %></span>
|
|
|
|
|
|
|
|
<span><%= format_time section.start_time %> ~ <%= com_end_time section.end_time %></span>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<li class="inline enter_btn">
|
|
|
|
<li class="inline enter_btn">
|
|
|
|
<a href="javascript:void(0)" class="active">Java入口</a>
|
|
|
|
<% "@urls[i][j][k]表示: 第i个比赛的第j个对象,的第k个url入口" %>
|
|
|
|
<a href="javascript:void(0)" class="active">C/C++入口</a>
|
|
|
|
<% section.competition_entries.each_with_index do |entry| %>
|
|
|
|
<a href="javascript:void(0)">Python入口</a>
|
|
|
|
<a class="li-1" href="<%= Time.now > section.start_time ? "#{entry.url}" : "javascript:void(0);" %>" <%= Time.now > section.start_time ? 'target="_blank"' : "" %> ><%= entry.name %></a>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
|
|
|
|
<p class="mb30 font-22 enter_title"><span class="mr20 font-bd">第一阶段</span><span>2019-6-25 09:00-2019-7-10 24:00 </span></p>
|
|
|
|
|
|
|
|
<li class="inline enter_btn">
|
|
|
|
|
|
|
|
<a href="javascript:void(0)">Java入口</a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)">C/C++入口</a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)">Python入口</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="second_4" style="background: url('/images/educoder/competition/qg/qg_two_4.png') no-repeat top center;">
|
|
|
|
|
|
|
|
<div class="enter_panel">
|
|
|
|
|
|
|
|
<ul class="mb40">
|
|
|
|
|
|
|
|
<p class="mb30 font-22 enter_title"><span class="mr20 font-bd">第一阶段</span><span>2019-6-25 09:00-2019-7-10 24:00 </span></p>
|
|
|
|
|
|
|
|
<li class="inline enter_btn">
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" class="active">Java入口</a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" class="active">C/C++入口</a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)">Python入口</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
|
|
|
|
<p class="mb30 font-22 enter_title"><span class="mr20 font-bd">第一阶段</span><span>2019-6-25 09:00-2019-7-10 24:00 </span></p>
|
|
|
|
|
|
|
|
<li class="inline enter_btn">
|
|
|
|
|
|
|
|
<a href="javascript:void(0)">Java入口</a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)">C/C++入口</a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)">Python入口</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="second_5" style="background: url('/images/educoder/competition/qg/qg_two_5.png') no-repeat top center;">
|
|
|
|
|
|
|
|
<div class="enter_panel">
|
|
|
|
|
|
|
|
<ul class="mb40">
|
|
|
|
|
|
|
|
<p class="mb30 font-22 enter_title"><span class="mr20 font-bd">第一阶段</span><span>2019-6-25 09:00-2019-7-10 24:00 </span></p>
|
|
|
|
|
|
|
|
<li class="inline enter_btn">
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" class="active">Java入口</a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)" class="active">C/C++入口</a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)">Python入口</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
|
|
|
|
<p class="mb30 font-22 enter_title"><span class="mr20 font-bd">第一阶段</span><span>2019-6-25 09:00-2019-7-10 24:00 </span></p>
|
|
|
|
|
|
|
|
<li class="inline enter_btn">
|
|
|
|
|
|
|
|
<a href="javascript:void(0)">Java入口</a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)">C/C++入口</a>
|
|
|
|
|
|
|
|
<a href="javascript:void(0)">Python入口</a>
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% index += 1 %>
|
|
|
|
<p class="second_6" style="background: url('/images/educoder/competition/qg/qg_two_6.png') no-repeat top center;"></p>
|
|
|
|
<% end %>
|
|
|
|
<p class="second_7" style="background: url('/images/educoder/competition/qg/qg_two_7.png') no-repeat top center;"></p>
|
|
|
|
|
|
|
|
<p class="second_8" style="background: url('/images/educoder/competition/qg/qg_two_8.png') no-repeat top center;"></p>
|
|
|
|
<div class="second_6" style="background: url(<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>) no-repeat top center;"></div>
|
|
|
|
|
|
|
|
<% index += 1 %>
|
|
|
|
|
|
|
|
<div class="second_7" style="background: url(<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>) no-repeat top center;"></div>
|
|
|
|
|
|
|
|
<% index += 1 %>
|
|
|
|
|
|
|
|
<div class="second_8" style="background: url(<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>) no-repeat top center;"></div>
|
|
|
|