parent
fe4e1cc175
commit
b42d742c06
|
@ -69,8 +69,9 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
<a href="http://course.trustie.net<%=port%>?school_id=0">全部学校</a>
|
<a href="http://course.trustie.net<%=port%>?school_id=0">全部学校</a>
|
||||||
<a href="http://course.trustie.net<%=port%>">我的学校</a>
|
<%= link_to '我的学校',scholl_course_list_path(User.current.user_extensions.school) %>
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li style="width: 40%; float: left">请选择省份:
|
<li style="width: 40%; float: left">请选择省份:
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
|
|
||||||
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject">
|
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject">
|
||||||
<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] || params[:id]) %>
|
||||||
<% if(school_course.count == 0) %>
|
<% if(school_course.count == 0) %>
|
||||||
<span><%= link_to "更多>>", {:controller => 'courses', :action => 'index', :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">
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
该学校未开设任何课程,您可以查看其他学校课程
|
该学校未开设任何课程,您可以查看其他学校课程
|
||||||
</p>
|
</p>
|
||||||
<h1></h1>
|
<h1></h1>
|
||||||
<% find_all_new_hot_course(9,params[:school_id]).map do |project| %>
|
<% find_all_new_hot_course(9,params[:school_id] || params[:id]).map do |project| %>
|
||||||
<li class='<%= cycle("odd", "even") %>' title=<%=project.description.to_s%>>
|
<li class='<%= cycle("odd", "even") %>' title=<%=project.description.to_s%>>
|
||||||
<div class='avatar'>
|
<div class='avatar'>
|
||||||
<%= image_tag(get_course_avatar(project), :class => "avatar-4") %>
|
<%= image_tag(get_course_avatar(project), :class => "avatar-4") %>
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
<!-- 上左下右 -->
|
<!-- 上左下右 -->
|
||||||
<div class='desc_item' >
|
<div class='desc_item' >
|
||||||
<span class=''>
|
<span class=''>
|
||||||
<% course = Course.find_by_extra(project.identifier)%>
|
<% course = Course.find_by_extra(project.extra)%>
|
||||||
<% if(course.school == nil) %>
|
<% if(course.school == nil) %>
|
||||||
|
|
||||||
<% else %>
|
<% else %>
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
<div>
|
<div>
|
||||||
<% if !course_endTime_timeout?(project)%>
|
<% if !course_endTime_timeout?(project)%>
|
||||||
<div >
|
<div >
|
||||||
<%= new_watcher_link(project, User.current)%>
|
<%#= new_watcher_link(project, User.current)%>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -181,7 +181,7 @@
|
||||||
该学校开设课程较少,您可以查看其他学校课程
|
该学校开设课程较少,您可以查看其他学校课程
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<% find_all_new_hot_course(9 - school_course.count,params[:school_id]).map do |project| %>
|
<% find_all_new_hot_course(9 - school_course.count,params[:school_id] || params[:id]).map do |project| %>
|
||||||
<li class='<%= cycle("odd", "even") %>' title=<%=project.description.to_s%>>
|
<li class='<%= cycle("odd", "even") %>' title=<%=project.description.to_s%>>
|
||||||
<div class='avatar'>
|
<div class='avatar'>
|
||||||
<%= image_tag(get_course_avatar(project), :class => "avatar-4") %>
|
<%= image_tag(get_course_avatar(project), :class => "avatar-4") %>
|
||||||
|
@ -211,7 +211,7 @@
|
||||||
<div>
|
<div>
|
||||||
<% if !course_endTime_timeout?(project)%>
|
<% if !course_endTime_timeout?(project)%>
|
||||||
<div >
|
<div >
|
||||||
<%= new_watcher_link(project, User.current)%>
|
<%#= new_watcher_link(project, User.current)%>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -700,7 +700,7 @@ RedmineApp::Application.routes.draw do
|
||||||
#######confusing########
|
#######confusing########
|
||||||
get 'welcome/search', to: 'welcome#search'
|
get 'welcome/search', to: 'welcome#search'
|
||||||
get 'school/index', to: 'school#index'
|
get 'school/index', to: 'school#index'
|
||||||
get 'course/:school_id', to: 'welcome#course'
|
get 'course/:school_id', to: 'welcome#course', :as => 'scholl_course_list'
|
||||||
#get 'course/:school_id', to: 'welcome#course'
|
#get 'course/:school_id', to: 'welcome#course'
|
||||||
post 'school/get_options/:province', :to => 'school#get_options'
|
post 'school/get_options/:province', :to => 'school#get_options'
|
||||||
get 'school/get_options/:province', :to => 'school#get_options'
|
get 'school/get_options/:province', :to => 'school#get_options'
|
||||||
|
|
Loading…
Reference in New Issue