This commit is contained in:
parent
85e0a1df67
commit
c4de8cf948
|
@ -184,6 +184,8 @@ class WelcomeController < ApplicationController
|
|||
@users = User.search(@name).page(params[:page] || 1).per(20)
|
||||
when 'syllabus'
|
||||
@syllabuses = Syllabus.search(@name).page(params[:page] || 1).per(20)
|
||||
logger.info "input_syllabus"
|
||||
logger.info @syllabuses[0]
|
||||
when 'project'
|
||||
@projects = Project.search(@name).page(params[:page] || 1).per(20).results
|
||||
when 'course'
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
<div class="cl"></div>
|
||||
</ul>
|
||||
<% when 'syllabus'%>
|
||||
<% logger.info "input_item" %>
|
||||
<% logger.info item %>
|
||||
<ul class="searchContent w968">
|
||||
<li class="f16 mb5 fontGrey3">
|
||||
<a href="<%= syllabus_path(item.id)%>" class="fontGrey3 fl"><%= item.try(:highlight).try(:title) ? item.highlight.title[0].html_safe : item.title %>课程</a>
|
||||
|
|
Loading…
Reference in New Issue