17 lines
1.0 KiB
Plaintext
17 lines
1.0 KiB
Plaintext
<% for item in @list %>
|
|
|
|
<div class="home_courses_list fl" nhname="rec" data-id="<%= item.id %>">
|
|
<div class="courses_list_pic fl ml10 mr10">
|
|
<a href="<%= url_for(:controller => 'courses', :action=>"show", :id=>item.id, :host=>Setting.host_course) %>"><%= image_tag(url_to_avatar(item), :style => 'width:64px;height:64px;') %></a>
|
|
</div>
|
|
<span class="fl" style="width:260px;">
|
|
<a href="<%= url_for(:controller => 'courses', :action=>"show", :id=>item.id, :host=>Setting.host_course) %>" class="home_list_title c_blue02 fl mb10" title="<%= item.name %>"><%= item.name %></a>
|
|
</span>
|
|
<div class="fl c_dgrey">
|
|
<p>主讲老师:<a href="<%= user_path(item.teacher) %>" title="<%= item.teacher.show_name %>"><%= item.teacher.show_name %></a></p>
|
|
<p>课程作业:<a href="<%=url_for(:controller => 'homework_common', :action => 'index',:course=>item.id, :host=>Setting.host_course)%>"><%= item.homework_commons.count %></a> <span class="ml10"></span>成员:<%= item.members.count %></p>
|
|
</div>
|
|
<div class="cl"></div>
|
|
</div>
|
|
<% end %>
|