|
|
@ -109,22 +109,31 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</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 %>
|
|
|
|
<% 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">
|
|
|
|
<% if User.current.admin?%>
|
|
|
|
<a href="javascript:void(0);" class="fl task-btn task-btn-orange ml5 mb5" onclick="search_enroll_team();">搜索</a>
|
|
|
|
<div class="mt20">
|
|
|
|
<span class="fl mb5 ml10 pr5 none">战队数:<span id="search_teams_count" class="color-orange"></span>个</span>
|
|
|
|
<input class="fl ml20 mb5" style="padding: 5px; width: 200px; line-height: 20px;" maxlength="10" placeholder="输入学校名称进行搜索" type="text" id="school_name">
|
|
|
|
<span class="fl mb5 ml10 pr5 none">成员数:<span id="team_members_count" class="color-orange"></span>个</span>
|
|
|
|
<a href="javascript:void(0);" class="fl task-btn task-btn-orange ml5 mb5" onclick="search_enroll_team();">搜索</a>
|
|
|
|
<span class="fr mb5 pr5"><%= @maximum_staff > 1 ? "战队总数" : "报名人数" %>:<span class="color-orange"><%= @team_count %></span>个</span>
|
|
|
|
<span class="fl mb5 ml10 pr5 none">战队数:<span id="search_teams_count" class="color-orange"></span>个</span>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<span class="fl mb5 ml10 pr5 none">成员数:<span id="team_members_count" class="color-orange"></span>个</span>
|
|
|
|
<%= render :partial => "competitions/team_list" %>
|
|
|
|
<span class="fr mb5 pr5"><%= @maximum_staff > 1 ? "战队总数" : "报名人数" %>:<span class="color-orange"><%= @team_count %></span>个</span>
|
|
|
|
<% else %>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<% if @teams.blank? %>
|
|
|
|
|
|
|
|
<div class="edu-txt-center">
|
|
|
|
<% if @teams.present? %>
|
|
|
|
<p class="font-30 color-green mb30">您还未参与报名哦,赶紧来挑战吧~</p>
|
|
|
|
<%= render :partial => "competitions/team_list" %>
|
|
|
|
<img src="/images/educoder/competition/noTeam.png"/>
|
|
|
|
<% else %>
|
|
|
|
</div>
|
|
|
|
<div class="edu-txt-center">
|
|
|
|
<% end %>
|
|
|
|
<p class="font-30 color-green mb30">还没有人报名~</p>
|
|
|
|
|
|
|
|
<img src="/images/educoder/competition/noTeam.png"/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|