<%# reply_allow = JournalsForMessage.create_by_user? User.current %>

<%= @homework.name %>

<% if @homework.users.count > 0 %>
<%= l(:label_participation_person) %>: <% if @is_anonymous_comments %> <%= 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, :m_score => @m_score, :cur_page => @cur_page, :cur_type => @cur_type, :is_teacher => @is_teacher} %>
<%= render :partial => 'histoey_new' %>