diff --git a/app/views/bids/_bid_homework_show.html.erb b/app/views/bids/_bid_homework_show.html.erb index cd9b7b037..cc8159821 100644 --- a/app/views/bids/_bid_homework_show.html.erb +++ b/app/views/bids/_bid_homework_show.html.erb @@ -17,6 +17,21 @@ +second+" "); } + <% if bids.blank? %> <%#= l(:label_uncommit_homework) %> @@ -46,10 +61,12 @@ <% cur_user_homework = cur_user_homework_for_bid(bid) %> <% if cur_user_homework!= nil && cur_user_homework.empty? %> <% if bid.comment_status == 0 || bid.comment_status == 2%> - <%= link_to l(:label_commit_homework),new_exercise_book_path(bid) %> + + <%= link_to l(:label_commit_homework),new_exercise_book_path(bid) %> + <% else %> - - <%= l(:label_commit_homework)%> + + 提交作业 <% end %> <% else %> @@ -59,7 +76,7 @@ <% end %> <% end %> <% if (User.current.admin?||User.current.id==bid.author_id) %> - + <% case bid.comment_status %> <% when 0 %> <%= link_to '启动匿评', alert_anonymous_comment_bid_path(bid), id: "#{bid.id}_start_anonymous_comment", remote: true, disable_with: '加载中...' %> @@ -69,11 +86,12 @@ 匿评结束 <% end %> - <%= link_to( + + <%= link_to( l(:button_edit), - {:action => 'edit', :controller=>'bids', :course_id =>@course.id, :bid_id => bid.id}, - :class => 'icon icon-edit' + {:action => 'edit', :controller=>'bids', :course_id =>@course.id, :bid_id => bid.id} ) %> + <%#= link_to( l(:button_delete), {:action => 'homework_destroy', :controller=>'bids', :course_id => bid.id},