修改课程首页“更多”链接错误
This commit is contained in:
parent
2a6cbe28f0
commit
b928eb6ed8
|
@ -75,7 +75,7 @@
|
||||||
<h3><strong>新开课程</strong></h3>
|
<h3><strong>新开课程</strong></h3>
|
||||||
<% school_course = find_miracle_course(10, 7,params[:school_id]) %>
|
<% school_course = find_miracle_course(10, 7,params[:school_id]) %>
|
||||||
<% if(school_course.count == 0) %>
|
<% 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">
|
<div class="d-p-projectlist-box">
|
||||||
<ul class="d-p-projectlist">
|
<ul class="d-p-projectlist">
|
||||||
|
|
||||||
|
@ -130,11 +130,11 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if school_course.count < 9 %>
|
<% if school_course.count < 9 %>
|
||||||
<span>
|
<span>
|
||||||
<%= link_to "更多>>", {:controller => 'courses', :action => 'course', :school_id => nil} %>
|
<%= link_to "更多>>", {:controller => 'courses', :action => 'index', :school_id => nil} %>
|
||||||
</span>
|
</span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<span>
|
<span>
|
||||||
<%= link_to "更多>>", {:controller => 'courses', :action => 'course', :school_id => params[:school_id]} %>
|
<%= link_to "更多>>", {:controller => 'courses', :action => 'index', :school_id => params[:school_id]} %>
|
||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="d-p-projectlist-box">
|
<div class="d-p-projectlist-box">
|
||||||
|
|
Loading…
Reference in New Issue