fix competition index

project_pack
p31729568 5 years ago
parent 1e290bbf68
commit 009a762600

@ -4,7 +4,7 @@
<% @competition.competition_modules.where(:hidden => 0).each do |com_module| %>
<% case com_module.name %>
<% when '首页' %>
<% if params[:action] == 'show' %>
<% if params[:controller] == 'competitions' && params[:action] == 'show' %>
<li class="<%= params[:action] == 'show' ? 'active' : '' %>">
<a href="javascript:void(0)" id="jump_page1" onclick="jump_to('page1')">首页</a>
</li>
@ -19,7 +19,7 @@
<% end %>
<% when '赛事说明' %>
<li>
<% if params[:action] == 'show' %>
<% if params[:controller] == 'competitions' && params[:action] == 'show' %>
<a href="javascript:void(0)" id="jump_page3" onclick="jump_to('page3')">赛事说明</a>
<% else %>
<a href="<%= competition_path(@competition, :page => 3) %>">赛事说明</a>
@ -27,7 +27,7 @@
</li>
<% when '大赛机构' %>
<li>
<% if params[:action] == 'show' %>
<% if params[:controller] == 'competitions' && params[:action] == 'show' %>
<a href="javascript:void(0)" id="jump_page7" onclick="jump_to('page7')">大赛机构</a>
<% else %>
<a href="<%= competition_path(@competition, :page => 7) %>">大赛机构</a>

Loading…
Cancel
Save