修改课程首页“更多”链接错误

This commit is contained in:
nwb 2014-07-03 15:30:52 +08:00
parent 2a6cbe28f0
commit b928eb6ed8
1 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@
<h3><strong>新开课程</strong></h3>
<% school_course = find_miracle_course(10, 7,params[:school_id]) %>
<% if(school_course.count == 0) %>
<span><%= link_to "更多>>", {:controller => 'courses', :action => 'course', :project_type => 1, :school_id => nil} %></span>
<span><%= link_to "更多>>", {:controller => 'courses', :action => 'index', :school_id => nil} %></span>
<div class="d-p-projectlist-box">
<ul class="d-p-projectlist">
@ -130,11 +130,11 @@
<% else %>
<% if school_course.count < 9 %>
<span>
<%= link_to "更多>>", {:controller => 'courses', :action => 'course', :school_id => nil} %>
<%= link_to "更多>>", {:controller => 'courses', :action => 'index', :school_id => nil} %>
</span>
<% else %>
<span>
<%= link_to "更多>>", {:controller => 'courses', :action => 'course', :school_id => params[:school_id]} %>
<%= link_to "更多>>", {:controller => 'courses', :action => 'index', :school_id => params[:school_id]} %>
</span>
<% end %>
<div class="d-p-projectlist-box">