|
|
|
@ -119,6 +119,15 @@
|
|
|
|
|
<% 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", :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"} %>
|
|
|
|
|
<a class=" por_course_time"><%= time_from_now course.updated_at %></a>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% if field.field_type == "Post" %>
|
|
|
|
|