<% containers.each do |container| %>
<%= link_to image_tag(url_to_avatar(container), :width => "90", :height => "90"), container.class == Course ? course_path(container) : project_path(container) %>
<%=link_to container.name, container.class == Course ? course_path(container) : project_path(container) %>
<%= container.members.count %>
成员
<%= container.attachments.count %>
资源
<% if User.current.admin? %> <%= container.class == Course ? (container.is_excellent == 0 ? "设为精品" : "取消精品") : (container.hot ==0 ? "设为热门" : "取消热门") %> <% end %>
<% end %>