<%= @homework.name %>
- <%= l(:label_create_person) %>:
<% if @is_anonymous_comments && @is_comprehensive_evaluation != 1 %>
<%= l(:label_anonymous) %>
<% else %>
<%= link_to @homework.user, user_path(@homework.user)%>
<% end %>
-
<%= l(:label_activity_time) %>:
<%=format_time @homework.created_at %>
<% if @homework.users.count > 0 %>
<%= l(:label_participation_person) %>:
<% if @is_anonymous_comments && @is_comprehensive_evaluation != 1 %>
<%= l(:label_anonymous) %>
<%else%>
<% @homework.users.each do |homework_user| %>
<%= link_to homework_user, user_path(homework_user)%>
<% if @homework.users.count > 1 && homework_user != @homework.users.last %>
、
<% end %>
<% end %>
<% end %>
<% end %>
<% if @homework.description != nil && @homework.description != "" %>
<%= @homework.description %>
<% else %>
<%= l(:label_homework_without_description) %>
<% end %>
<%= l(:label_attachment) %>:
<% if @homework.attachments.empty?%>
尚未提交附件
<% else%>
<% options = {:author => true } %>
<%= render :partial => 'app_link', :locals => {:attachments => @homework.attachments, :options => options} %>
<% end%>
<%= render :partial => 'addjour', :locals => {:homework_attach => @homework, :sta => 0,
:is_comprehensive_evaluation => @is_comprehensive_evaluation,
:m_score => @m_score,
:cur_page => @cur_page,
:cur_type => @cur_type,
:is_teacher => @is_teacher} %>