From b9550cedb935c1d36ba9fecf5bea98b436f22efc Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Wed, 28 May 2014 19:54:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E4=BD=9C=E4=B8=9A=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=95=8C=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/base_homework.html.erb | 87 +++++++++++++++++++----- 1 file changed, 71 insertions(+), 16 deletions(-) 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 %>