diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb index db9d0e1d7..c70e6ae40 100644 --- a/app/views/layouts/base_homework.html.erb +++ b/app/views/layouts/base_homework.html.erb @@ -76,7 +76,7 @@ - -
+ <%= link_to course.name.to_s, homework_course_path(course) if course %> @@ -85,7 +85,7 @@
+ <%=link_to(@bid.name, course_for_bid_path(@bid)) %> @@ -101,8 +101,25 @@
+ <% if (User.current.admin?||User.current.id==@bid.author_id) %> + + + + <% end %> + -
+ + <% case @bid.comment_status %> + <% when 0 %> + <%= link_to '启动匿评', start_anonymous_comment_bid_path(@bid), id: "#{@bid.id}_start_anonymous_comment", remote: true %> + <% when 1 %> + <%= link_to '关闭匿评', stop_anonymous_comment_bid_path(@bid), id: "#{@bid.id}_stop_anonymous_comment", remote: true %> + <% when 2 %> + 匿评结束 + <% end %> + +
+ <%= l(:label_homework_description) %> : @@ -118,7 +135,6 @@
<%= l(:label_limit_time) %>: - <%= @bid.deadline %>