2016-10-09 10:35:43 +08:00
|
|
|
<% unless syllabuses.nil? || syllabuses.empty?%>
|
2016-10-10 09:38:21 +08:00
|
|
|
<% syllabuses.each do |item|%>
|
2016-10-09 10:35:43 +08:00
|
|
|
<ul class="searchContent w968">
|
2016-10-09 13:48:38 +08:00
|
|
|
<li class="f16 mb5 fontGrey3">
|
2016-10-09 13:57:27 +08:00
|
|
|
<!--<a href="<%#= syllabus_path(syllabus.id)%>" class="fontGrey3 fl"><span class="c_red"><%#= syllabus.title %></span>课程</a>-->
|
2016-10-10 09:38:21 +08:00
|
|
|
<a href="<%= syllabus_path(item.id)%>" class="fontGrey3 fl"><%= item.try(:highlight).try(:title) ? item.highlight.title[0].html_safe : item.title %>课程</a>
|
|
|
|
<div class="mt5 fl"><%= image_tag("search_icon_03.png", :width=>"8", :height=>"16" ,:class=>"fl") %><span class="searchTag">课程</span></div><div class="cl"></div></li>
|
2016-10-09 13:48:38 +08:00
|
|
|
<li class="f12 fontGrey2">
|
2016-10-10 09:38:21 +08:00
|
|
|
<% user = User.find(item.user_id)%>
|
|
|
|
<% syllabus = Syllabus.find(item.id) %>
|
|
|
|
<span class="mr30">创建者:<%=user.login+"("+user.show_name+")"%></span>
|
2016-10-09 13:48:38 +08:00
|
|
|
<span class="mr30">教师团队:<%=syllabus.syllabus_members.count%></span>
|
|
|
|
<span class="mr30">班级:<%=syllabus.courses.count%></span>
|
|
|
|
<span class="mr30">更新时间:<%=format_date(syllabus.updated_at)%></span>
|
2016-10-10 09:38:21 +08:00
|
|
|
<span class="mr30"><%=user.show_occupation.nil? ? "": "单位:"+user.show_occupation %></span>
|
2016-10-09 13:48:38 +08:00
|
|
|
</li>
|
2016-10-09 10:35:43 +08:00
|
|
|
</ul>
|
|
|
|
<% end %>
|
|
|
|
<div class="pageRoll">
|
2016-10-09 11:01:52 +08:00
|
|
|
<%= paginate syllabuses,:params => {:controller => 'welcome', :action => 'search',:search_type=>'syllabus'}%>
|
2016-10-09 10:35:43 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|