<% if @competition.identifier == "gcc-annotation-2018" %>
开源标注正赛排行榜
<% elsif @competition.identifier == "gcc-course-2019" %>
排行榜
<% else %>
<% if @max_min_stage.count == 1 %>
排行榜
<% else %>
<% if @competition.end_time < Time.now %>
">总排行榜
<% end %>
<% @max_min_stage.reverse.each do |section| %>
<% stage = section.competition_stage %>
<% if stage.name != "模拟赛" && !stage.name.blank? %>
<% if section.min_start_time < Time.now %>
"><%= stage.name %>排行榜
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>