You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pgfqe6ch8/app/views/competitions/index.html.erb

29 lines
1.1 KiB

6 years ago
<div class="educontent mt20 mb80">
<div class="mt20 mb20 clearfix">
<%= link_to '全部', competitions_path(category: ''), remote: true,
class: "fl mr20 font-16 bestChoose shixun_repertoire #{params[:category].blank? ? 'active' : ''}" %>
<%= link_to '进行中', competitions_path(category: 'progressing'), remote: true,
class: "fl mr20 font-16 bestChoose shixun_repertoire #{params[:category] == 'progressing' ? 'active' : ''}" %>
<%= link_to '往期比赛', competitions_path(category: 'ended'), remote: true,
class: "fl mr20 font-16 bestChoose shixun_repertoire #{params[:category] == 'ended' ? 'active' : ''}" %>
</div>
<div class="competition-list">
<%= render 'competitions/competition_list' %>
</div>
6 years ago
</div>
5 years ago
<script>
$(function(){
<% unless admin_or_business? %>
$(".competitionsList-item").hover(function(){
5 years ago
$(this).find(".competitionsList-item-tip").removeClass("strongNone");
},function(){
$(this).find(".competitionsList-item-tip").addClass("strongNone");
});
<% end %>
5 years ago
})
</script>