Merge branch 'develop' of https://bdgit.educoder.net/Hjqreturn/pgfqe6ch8 into develop
commit
f1dfb2b4bb
@ -1,14 +1,30 @@
|
|||||||
<p class="second_course_1" style="background: url('/images/educoder/competition/qg/qg_teach_1.png') no-repeat top center;"></p>
|
<% index = 0 %>
|
||||||
<p class="second_course_2" style="background: url('/images/educoder/competition/qg/qg_teach_2.png') no-repeat top center;"></p>
|
<p class="second_course_1" style="background: url('<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>') no-repeat top center;"></p>
|
||||||
<p class="second_course_3" style="background: url('/images/educoder/competition/qg/qg_teach_3.png') no-repeat top center;"></p>
|
<% index += 1 %>
|
||||||
<p class="second_course_4" style="background: url('/images/educoder/competition/qg/qg_teach_4.png') no-repeat top center;"></p>
|
<p class="second_course_2" style="background: url('<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>') no-repeat top center;"></p>
|
||||||
<div class="second_course_5" style="background: url('/images/educoder/competition/qg/qg_teach_5.png') no-repeat top center;">
|
<% index += 1 %>
|
||||||
|
<p class="second_course_3" style="background: url('<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>') no-repeat top center;"></p>
|
||||||
|
<% index += 1 %>
|
||||||
|
<p class="second_course_4" style="background: url('<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>') no-repeat top center;"></p>
|
||||||
|
<% index += 1 %>
|
||||||
|
|
||||||
|
<%
|
||||||
|
stage = @competition.competition_stages.first
|
||||||
|
first_section = stage.competition_stage_sections.first
|
||||||
|
is_start = Time.now > first_section.start_time
|
||||||
|
%>
|
||||||
|
<div class="second_course_5" style="background: url('<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>') no-repeat top center;">
|
||||||
<div class="enter_panel" style="height: 500px">
|
<div class="enter_panel" style="height: 500px">
|
||||||
<div class="course_competition_panel">
|
<div class="course_competition_panel">
|
||||||
<a href="javascript:void(0)" class="active">未知</a>
|
<a href="<%= is_start ? first_section.competition_entries[0].url : 'javascript:void(0)'%>"
|
||||||
<a href="javascript:void(0)">未知</a>
|
class="<%= is_start ? 'active' : '' %>"><%= first_section.competition_entries[0].name %></a>
|
||||||
|
<a href="<%= is_start ? first_section.competition_entries[1].url : 'javascript:void(0)'%>"
|
||||||
|
class="<%= is_start ? 'active' : '' %>"><%= first_section.competition_entries[1].name %></a>
|
||||||
</div>
|
</div>
|
||||||
<a href="javascript:void(0)" class="ex_submit">案例提交</a>
|
<a href="<%= is_start ? first_section.competition_entries[2].url : 'javascript:void(0)'%>"
|
||||||
|
class="ex_submit"><%= first_section.competition_entries[2].name %></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="second_course_6" style="background: url('/images/educoder/competition/qg/qg_teach_6.png') no-repeat top center;"></p>
|
<% index += 1 %>
|
||||||
|
|
||||||
|
<p class="second_course_6" style="background: url('<%= named_attachment_path(@images[index], @images[index].try(:filename)) %>') no-repeat top center;"></p>
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
class ChangeExecTimeDefaultForChallenges < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
change_column :challenges, :exec_time, :integer, :default => 20
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue