2016-01-24 10:58:58 +08:00
|
|
|
|
<% unless excellent_course_recommend(course).length == 0 %>
|
|
|
|
|
<ul class="courseR mb10">
|
|
|
|
|
<h4 class="mb5" ><%= l(:label_homework_recommendation) %>:</h4>
|
|
|
|
|
<% excellent_course_recommend(course).each do |e_course| %>
|
|
|
|
|
<% e_course = Course.find(e_course) %>
|
|
|
|
|
|
|
|
|
|
<li class="mt15"> <%= image_tag(url_to_avatar(e_course), :width => "40", :height => "40", :class => "fl mr10 rankPortrait", :alt => "logo") %>
|
|
|
|
|
<div class="fl">
|
2016-03-09 09:46:07 +08:00
|
|
|
|
<p class="f12 mb5"><%=link_to e_course.name, course_path(e_course.id), :class => "hidden fl w170" %><div class="cl"></div> </p>
|
2016-01-24 10:58:58 +08:00
|
|
|
|
<p class="f12">
|
2016-02-01 11:12:04 +08:00
|
|
|
|
<% if e_course.attachments.count > 0 %>
|
|
|
|
|
<span class="fl mr15 fontGrey4"><%= l(:project_module_attachments) %>(<%= link_to e_course.attachments.count, course_files_path(e_course), :class => "linkBlue2" %>)</span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if e_course.homework_commons.count > 0 %>
|
|
|
|
|
<span class="fl fontGrey4"><%= l(:label_homework_commont) %>(<%= link_to e_course.homework_commons.count, homework_common_index_path(:course=>e_course.id), :class => "linkBlue2" %>)</span>
|
|
|
|
|
<% end %>
|
2016-03-09 09:46:07 +08:00
|
|
|
|
<div class="cl"></div>
|
2016-02-01 11:12:04 +08:00
|
|
|
|
</p>
|
2016-01-24 10:58:58 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</ul>
|
|
|
|
|
<% end %>
|
|
|
|
|
|