diff --git a/app/views/layouts/_base_homework_attach.html.erb b/app/views/layouts/_base_homework_attach.html.erb index dfe9e6ea6..6b020d806 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 => 'projects', :action => 'course'%>

<%=link_to "主页", home_path %> > <%=link_to l(:label_course_practice), :controller => 'projects', :action => 'course' %> > <%= link_to(homework_attach.bid.courses.first.name.to_s, homework_project_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,homework_attach_path(homework_attach)%>

+ <%=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)%>

\ No newline at end of file