<% contests.each do |contest|%>
  • <% is_teacher = User.current.logged? && (User.current.admin? || User.current.admin_of_contest?(contest)) %>

    <%= link_to contest.name, contest_path(contest.id), :target => '_blank', :class => 'hidden', :style => 'display:block;'%>

    <% count = ShieldActivity.where("container_type='User' and container_id=#{user.id} and shield_type='Contest' and shield_id=#{contest.id}").count %>
  • <% end %> <% if all_count > (page.to_i+1) * 10%> <% end%>