精品课程加入到左模式二
This commit is contained in:
parent
a1200a41b0
commit
a0f722837b
|
@ -71,7 +71,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% when 'project' %>
|
<% when 'project' %>
|
||||||
<h2 class="h2-title">项目动态</h2>
|
<h2 class="por_h2_index clear">项目动态</h2>
|
||||||
<% if @project_acts.blank? %>
|
<% if @project_acts.blank? %>
|
||||||
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
@ -119,24 +119,15 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% when 'Compcou' %>
|
|
||||||
<% @excellent_courses.first(4).each do |course| %>
|
|
||||||
<div class="por_course_bar fl clear">
|
|
||||||
<%= link_to course.name, course_path(course.id), :target => '_blank', :class => "por_course_title link-black", :title => course.name %>
|
|
||||||
<%= link_to image_tag(url_to_avatar(course),:width => "140", :height => "100"), user_path(attach.author), :target => "_blank", :class => "fl" %>
|
|
||||||
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => course.id, :content=> course.description, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
|
||||||
<span class=" por_course_time"><%= time_from_now course.updated_at %></span>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if field.field_type == "Post" %>
|
<% if field.field_type == "Post" %>
|
||||||
<% org_acts = get_subfield_acts field %>
|
<% org_acts = get_subfield_acts field %>
|
||||||
<% if org_acts.blank? %>
|
<% if org_acts.blank? %>
|
||||||
<h2 class="h2-title"><%= field.name %></h2>
|
<h2 class="por_h2_index clear"><%= field.name %></h2>
|
||||||
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||||
<% else %>
|
<% else %>
|
||||||
<h2 class="h2-title"><%= field.name %>
|
<h2 class="por_h2_index clear"><%= field.name %>
|
||||||
<%= render :partial => 'organizations/link_subfield_more', :locals => {:field => field} %>
|
<%= render :partial => 'organizations/link_subfield_more', :locals => {:field => field} %>
|
||||||
</h2>
|
</h2>
|
||||||
<% org_acts.first(4).each do |activity| %>
|
<% org_acts.first(4).each do |activity| %>
|
||||||
|
@ -201,6 +192,20 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% elsif 'Compcou' %>
|
||||||
|
<h2 class="por_h2_index clear"><%= field.name %></h2>
|
||||||
|
<% if @excellent_courses.blank? %>
|
||||||
|
<p class="fontGrey2 f14 mt10 mb5">该模块暂时没有相关内容</p>
|
||||||
|
<% else %>
|
||||||
|
<% @excellent_courses.first(4).each do |course| %>
|
||||||
|
<div class="por_course_bar fl clear">
|
||||||
|
<%= link_to course.name, course_path(course.id), :target => '_blank', :class => "por_course_title link-black", :title => course.name %>
|
||||||
|
<%= link_to image_tag(url_to_avatar(course),:width => "140", :height => "100"), course_path(course), :target => "_blank", :class => "fl" %>
|
||||||
|
<%=render :partial =>"organizations/organization_content_extension", :locals => {:user_activity_id => course.id, :content=> course.description, :maxheight => 80, :maxwordsnum => 56, :maxwidth => 0, :cl => "por_course_txt fl"} %>
|
||||||
|
<span class=" por_course_time"><%= time_from_now course.updated_at %></span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
|
Loading…
Reference in New Issue