fix competition

dev_bj
p31729568 5 years ago
parent 4d642391c4
commit 50b9600b80

@ -15,8 +15,11 @@
</p>
<li class="inline enter_btn">
<% "@urls[i][j][k]表示: 第i个比赛的第j个对象的第k个url入口" %>
<% is_start = Time.now > section.start_time %>
<% section.competition_entries.each_with_index do |entry| %>
<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>
<a class="li-1 <%= is_start ? 'active' : '' %>"
href="<%= is_start ? "#{entry.url}" : "javascript:void(0);" %>"
<%= Time.now > section.start_time ? 'target="_blank"' : "" %> ><%= entry.name %></a>
<% end %>
</li>
</ul>

@ -109,11 +109,6 @@
</div>
<% end %>
</div>
<% elsif !User.current.admin? %>
<div class="edu-txt-center">
<p class="font-30 color-green mb30">您还未参与报名哦,赶紧来挑战吧~</p>
<img src="/images/educoder/competition/noTeam.png"/>
</div>
<% end %>
<% if User.current.admin? && @teams.present? %>
<input class="fl ml20 mb5" style="padding: 5px; width: 200px; line-height: 20px;" maxlength="10" placeholder="输入学校名称进行搜索" type="text" id="school_name">
@ -124,7 +119,7 @@
<div class="cl"></div>
<%= render :partial => "competitions/team_list" %>
<% else %>
<% unless @teams.present? %>
<% if @teams.blank? %>
<div class="edu-txt-center">
<p class="font-30 color-green mb30">您还未参与报名哦,赶紧来挑战吧~</p>
<img src="/images/educoder/competition/noTeam.png"/>

@ -748,7 +748,7 @@ li.challenge_box:last-child{
.enrollItemContent{padding: 0px 10px;width: 100%;box-sizing: border-box;height: 100%;overflow: hidden;}
.enrollItemContent li{border-bottom: 1px solid #EAEAEA;padding: 20px;line-height: 20px}
.team-p-s{width: 20px;height: 20px;line-height: 12px;text-align: center;border-radius: 50%;background: #BCBCBC;color: #fff;float: left}
.enroll-in-b{display: block;border:4px solid #fff;width: 216px;height: 62px;text-align: center;line-height: 62px;margin: 0px 40px;font-size: 32px;color: #fff!important;background: #4CACFF}
.enroll-in-b{display: block;border:4px solid #fff;width: 216px;height: 62px;text-align: center;line-height: 62px;margin: 0px 40px;font-size: 32px;color: #fff!important;background: #4CACFF;cursor: pointer;}
.main_title{
font-size: 50px;
font-family:MicrosoftYaHei-Bold;

Loading…
Cancel
Save