From b61f3ce79fa31f2e01ded1b02e3e26e944c527ed Mon Sep 17 00:00:00 2001 From: xianbo Date: Tue, 5 Nov 2013 12:54:48 +0800 Subject: [PATCH] fix showw --- app/views/layouts/base_homework.html.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb index aeae81f1..a98e5e76 100644 --- a/app/views/layouts/base_homework.html.erb +++ b/app/views/layouts/base_homework.html.erb @@ -33,7 +33,7 @@ forge.trustie.net/courses <%=link_to "主页", home_path %> > <%=link_to "实践课程", :controller => 'projects', :action => 'course' %> > - <%= link_to(@bid.courses.first.name, project_path(@bid.courses.first)) %> > + <%= link_to(@bid.courses.first.name.slice(0..6), project_path(@bid.courses.first)) %> > <%=link_to(@bid.name, respond_path(@bid))%> @@ -44,16 +44,16 @@
- - - -
课程名: - <%= link_to @bid.courses.first.name, project_path(@bid.courses.first) %> + + + + - + -
课程名: + <%= link_to @bid.courses.first.name.slice(0..6), project_path(@bid.courses.first) %>
作业名: + <%= h @bid.name %>