diff --git a/app/views/homework_attach/show.html.erb b/app/views/homework_attach/show.html.erb index 915485fe..87dcf60c 100644 --- a/app/views/homework_attach/show.html.erb +++ b/app/views/homework_attach/show.html.erb @@ -24,7 +24,7 @@ 发布人员:<%= link_to @homework.user, user_path(@homework.user)%> - 所属任务:<%= link_to(@homework.bid.name, project_for_bid_path(@homework.bid))%> + 所属任务:<%= link_to(@homework.bid.name, course_for_bid_path(@homework.bid))%> diff --git a/app/views/layouts/_base_homework_attach.html.erb b/app/views/layouts/_base_homework_attach.html.erb index 7e609774..ad90e904 100644 --- a/app/views/layouts/_base_homework_attach.html.erb +++ b/app/views/layouts/_base_homework_attach.html.erb @@ -9,7 +9,7 @@ <%= 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(homework_attach.bid.courses.first.name.to_s, homework_course_path(homework_attach.bid.courses.first)) if homework_attach.bid.courses.first%> > - <%=link_to(homework_attach.bid.name, respond_path(homework_attach.bid)) %> > <%= link_to homework_attach.name.nil? ? homework_attach.attachments.first.filename : homework_attach.name,homework_attach_path(homework_attach)%>

+ <%=link_to(homework_attach.bid.name, course_for_bid_path(homework_attach.bid)) %> > <%= link_to homework_attach.name.nil? ? homework_attach.user.name + "提交的作业" : homework_attach.name,homework_attach_path(homework_attach)%>

\ No newline at end of file