competition gcc dev 2019

dev_bj
p31729568 5 years ago
parent 0b087c98e0
commit 788727f920

@ -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="enter_panel"> <div class="second_2" style="background: url(<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>) no-repeat top center;"></div>
<ul class="mb40"> <% index += 1 %>
<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"> <% @competition.competition_stages.each_with_index do |stage, i| %>
<a href="javascript:void(0)" class="active">Java入口</a> <div class="second_3" style="background: url(<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>) no-repeat top center;">
<a href="javascript:void(0)" class="active">C/C++入口</a> <div class="enter_panel">
<a href="javascript:void(0)">Python入口</a> <% stage.competition_stage_sections.each do |section| %>
</li> <ul class="mb40">
</ul> <p class="mb30 font-22 enter_title">
<ul> <span class="mr20 font-bd"><%= section.name %></span>
<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> <span><%= format_time section.start_time %> ~ <%= com_end_time section.end_time %></span>
<li class="inline enter_btn"> </p>
<a href="javascript:void(0)">Java入口</a> <li class="inline enter_btn">
<a href="javascript:void(0)">C/C++入口</a> <% "@urls[i][j][k]表示: 第i个比赛的第j个对象的第k个url入口" %>
<a href="javascript:void(0)">Python入口</a> <% section.competition_entries.each_with_index do |entry| %>
</li> <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>
</ul> <% end %>
</li>
</ul>
<% end %>
</div>
</div> </div>
</div> <% index += 1 %>
<div class="second_4" style="background: url('/images/educoder/competition/qg/qg_two_4.png') no-repeat top center;"> <% end %>
<div class="enter_panel">
<ul class="mb40"> <div class="second_6" style="background: url(<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>) no-repeat top center;"></div>
<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> <% index += 1 %>
<li class="inline enter_btn"> <div class="second_7" style="background: url(<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>) no-repeat top center;"></div>
<a href="javascript:void(0)" class="active">Java入口</a> <% index += 1 %>
<a href="javascript:void(0)" class="active">C/C++入口</a> <div class="second_8" style="background: url(<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>) no-repeat top center;"></div>
<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 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>
<p class="second_6" style="background: url('/images/educoder/competition/qg/qg_two_6.png') no-repeat top center;"></p>
<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>

@ -7,5 +7,7 @@
<%= render :partial => "qg_competition" %> <%= render :partial => "qg_competition" %>
<% elsif @competition.identifier == "gcc-annotation-2018" %> <% elsif @competition.identifier == "gcc-annotation-2018" %>
<%= render :partial => "annotation_2018_competition" %> <%= render :partial => "annotation_2018_competition" %>
<% elsif @competition.identifier == "gcc-dev-2019" %>
<%= render :partial => "qg_second_competition" %>
<% end %> <% end %>
</div> </div>
Loading…
Cancel
Save