diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb index f98d8eee9..7881b9350 100644 --- a/app/views/layouts/base_courses.html.erb +++ b/app/views/layouts/base_courses.html.erb @@ -42,7 +42,9 @@ forge.trustie.net/courses - <%=link_to "主页", home_path %> > <%=link_to "实践课程", :controller => 'projects', :action => 'index' %> > <%=link_to @project.name, project_path %>(<%= @course.time %><%= @course.term %>) + <%=link_to "主页", home_path %> > + <%=link_to "实践课程", :controller => 'projects', :action => 'index' %> > + <%=link_to @project.name, project_path %>(<%= @course.time %><%= @course.term %>) diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb index 4c1000aeb..bbc811f47 100644 --- a/app/views/layouts/base_homework.html.erb +++ b/app/views/layouts/base_homework.html.erb @@ -32,7 +32,9 @@ forge.trustie.net/courses - <%=link_to "主页", home_path %> > <%=link_to "实践课程", :controller => 'projects', :action => 'index' %> > <%= link_to(@bid.courses.first.name, project_path(@bid.courses.first)) %>() > <%=link_to "作业列表", :controller =>'projects', :action => 'homework'%> + <%=link_to "主页", home_path %> > <%=link_to "实践课程", :controller => 'projects', :action => 'index' %> > + <%= link_to(@bid.courses.first.name, project_path(@bid.courses.first)) %> > + <%=link_to(@bid.name, respond_path(@bid))%> @@ -45,14 +47,14 @@ -
课程名: + <%= link_to(@bid.courses.first.name, project_path(@bid.courses.first)) %>
作业名: - <%= h @bid.name %> + <%= h @bid.name %>