diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb index cfdea4a5e..3f0ad6cf8 100644 --- a/app/views/layouts/base_homework.html.erb +++ b/app/views/layouts/base_homework.html.erb @@ -18,6 +18,8 @@ <%= yield :header_tags -%> + <% project = @bid.courses.first %> + <% course = Course.find_by_extra(project.identifier) %>
@@ -45,20 +47,30 @@
- - - - - - - - - - -
课程名: - <%= link_to @bid.courses.first.name.to_s, homework_project_path(@bid.courses.first) if @bid.courses.first %> -
作业名: - <%= h @bid.name %> -
+ + + +
- + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<%= l(:label_new_course_description) %> :
<%= project.description %>
<%= l(:label_create_time) %> :<%= format_time course.created_at %>
主讲老师 :<%= link_to(@user.lastname+@user.firstname, user_path(@user)) %>
<%= l(:label_class_period) %> :<%= course.class_period.to_s %> <%= l(:label_class_hour) %>
<%= l(:label_main_term) %> :<%= course.time.to_s %> <%= course.term %>
<%= l(:label_teacher_work_unit) %> :<%= @user.user_extensions.occupation %>
+
+
+
+
<%= l(:label_limit_time) %>: <%= @bid.deadline %>