diff --git a/app/views/bids/_homework_form.html.erb b/app/views/bids/_homework_form.html.erb index 145e01f1c..2b7578a96 100644 --- a/app/views/bids/_homework_form.html.erb +++ b/app/views/bids/_homework_form.html.erb @@ -21,7 +21,6 @@ <%= error_messages_for 'bid' %> -
<%= l(:label_homeworks_form_new_description) %>
<%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;", :maxlength => Bid::NAME_LENGTH_LIMIT, :onblur => "regexName();" %> diff --git a/app/views/courses/_homework_form.html.erb b/app/views/courses/_homework_form.html.erb index b397b8d8f..646deb16e 100644 --- a/app/views/courses/_homework_form.html.erb +++ b/app/views/courses/_homework_form.html.erb @@ -21,7 +21,6 @@ <%= error_messages_for 'bid' %> -
<%= l(:label_homeworks_form_new_description) %>
<%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;", :maxlength => Bid::NAME_LENGTH_LIMIT, :onblur => "regexName();" %> diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb index 01813bf52..7808f268e 100644 --- a/app/views/layouts/base_homework.html.erb +++ b/app/views/layouts/base_homework.html.erb @@ -33,17 +33,26 @@
高校课程实践社区 | -<%= l(:label_user_location) %> : | - ++ <%= l(:label_user_location) %> : + |
- <%= link_to request.host()+"/courses", :controller => 'courses', :action => 'index' %> | -<%= link_to "主页", home_path %> - > <%= link_to l(:label_course_practice), :controller => 'courses', :action => 'index' %> > - <%= link_to(course.name.to_s, homework_course_path(course)) if course %> - > - <%= link_to(@bid.name, respond_path(@bid)) %> |
+ <%= link_to request.host()+"/courses", :controller => 'courses', :action => 'index' %>
+
+
+ <%= link_to "主页", home_path %> + > + <%= link_to l(:label_course_practice), :controller => 'courses', :action => 'index' %> + > + + <%= link_to(course.name.to_s, homework_course_path(course)) if course %> + + > + <%= link_to(@bid.name, respond_path(@bid)) %> + + |
- <%= l(:label_new_course_description) %> : | + + <%= l(:label_new_course_description) %> : + +|||
<%= textilizable course.description %> | ++ <%= textilizable course.description %> + | ||
<%= l(:label_create_time) %> : | -<%= format_time course.created_at %> | ++ <%= l(:label_create_time) %> : + | ++ <%= format_time course.created_at %> + |
主讲老师 : | -<%= link_to(course.teacher.lastname+course.teacher.firstname, user_path(course.teacher)) %> | +<%= l(:lable_course_teacher) %> : | ++ <%= link_to(course.teacher.lastname+course.teacher.firstname, user_path(course.teacher)) %> + |
<%= l(:label_class_period) %> : | -<%= course.class_period.to_s %> <%= l(:label_class_hour) %> | ++ <%= l(:label_class_period) %> : + | ++ <%= course.class_period.to_s %> + <%= l(:label_class_hour) %> + |
<%= course.time.to_s %> <%= course.term %> | |||
<%= l(:label_teacher_work_unit) %> : | - - <% unless @user.user_extensions.nil? || @user.user_extensions.school.nil? %> -<%= link_to @user.user_extensions.school,"http://course.trustie.net/?school_id=#{@user.user_extensions.school.id}" %> | - <% end %> -
<%= l(:label_limit_time) %>: <%= @bid.deadline %> | ++ <%= l(:label_limit_time) %>: + <%= @bid.deadline %> + |
作业类型: <%= @bid.homework_type==Bid::HomeworkFile ? "提交文件" : "提交项目" %> | +|
<%= render :partial => 'tags/tag', :locals => {:obj => @bid, :object_flag => "4"} %> | ++ <%= render :partial => 'tags/tag', :locals => {:obj => @bid, :object_flag => "4"} %> + |
<%= l(:label_homeworks_form_new_description) %>