diff --git a/app/views/bids/_homework_list.html.erb b/app/views/bids/_homework_list.html.erb index a5e42fe4..80a8d4f2 100644 --- a/app/views/bids/_homework_list.html.erb +++ b/app/views/bids/_homework_list.html.erb @@ -2,31 +2,33 @@ <%= render_flash_messages %> <% @homework_list.each do |homework|%> - <% if homework.attachments.any?%> - - - - - - -
<%= image_tag(url_to_avatar(homework.user), :class => "avatar")%> - - - - - - - - - - - -
<%= link_to homework.user, user_path(homework.user)%> 提交了作业
<%= l(:label_bidding_user_studentcode) %> :<%= homework.user.user_extensions.student_id%>
-

- <% options = {:author => true, :deletable => attach_delete(homework)} %> - <%= render :partial => 'attachments/links', - :locals => {:attachments => homework.attachments, :options => options} %> - <% end %> -

-
+ <% if homework.attachments.any?%> + + + + + + +
<%= image_tag(url_to_avatar(homework.user), :class => "avatar")%> + + + + + + + + + + + +
<%= link_to homework.user, user_path(homework.user)%> 提交了作业
<%= l(:label_bidding_user_studentcode) %> :<%= homework.user.user_extensions.student_id%>
+

+ <% options = {:author => true, :deletable => attach_delete(homework)} %> + <%= render :partial => 'attachments/links', + :locals => {:attachments => homework.attachments, :options => options} %> +

+
+
+
+ <% end %> <% end %>