From 36b7c9ca9024cdc6bd3c1fbd5346da7bffa487a7 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Thu, 11 Dec 2014 15:51:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=AF=BC=E8=88=AA=E6=A0=8F=E7=82=B9=E5=87=BB=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E5=AE=9E=E8=B7=B5=E6=8A=A5404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/index.html.erb | 18 +++++++++--- app/views/courses/search.html.erb | 18 +++++++++--- .../layouts/_base_homework_attach.html.erb | 29 +++++++++++++++---- 3 files changed, 51 insertions(+), 14 deletions(-) diff --git a/app/views/courses/index.html.erb b/app/views/courses/index.html.erb index 6b75bee67..e7a4a29db 100644 --- a/app/views/courses/index.html.erb +++ b/app/views/courses/index.html.erb @@ -10,8 +10,14 @@ <%= form_tag(:controller => 'courses', :action => 'search', :method => :get) do %> - - + + - - +
<%= l(:label_course_all) %><%= l(:label_user_location) %> : + + 高校课程实践社区 + + + <%= l(:label_user_location) %> : + <% if User.current.logged?%> <% if User.current.user_extensions.identity == 0 %> @@ -28,8 +34,12 @@
<%= link_to request.host()+"/courses", :controller => 'courses', :action => 'index' %> <%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_course_all), :controller => 'courses', :action => 'index' %> + <%=link_to l(:field_homepage), home_path %> > + + <%=l(:label_courses_management_platform)%> + +
<% end %> diff --git a/app/views/courses/search.html.erb b/app/views/courses/search.html.erb index a06e4a459..e2c701932 100644 --- a/app/views/courses/search.html.erb +++ b/app/views/courses/search.html.erb @@ -5,8 +5,14 @@ <%= form_tag(:controller => 'courses', :action => 'search', :method => :get) do %> - - + + - - +
<%= l(:label_course_practice) %><%= l(:label_user_location) %> : + + 高校课程实践社区 + + + <%= l(:label_user_location) %> : + <% if User.current.logged?%> <% if User.current.user_extensions.identity == 0 %> @@ -22,8 +28,12 @@
<%= link_to request.host() + "/courses", :controller => 'courses', :action => 'index'%> <%=link_to l(:field_homepage), home_path %> > <%=link_to l(:label_course_practice), :controller => 'courses', :action => 'index' %> + <%=link_to l(:field_homepage), home_path %> > + + <%=l(:label_courses_management_platform)%> + +
<% end %> diff --git a/app/views/layouts/_base_homework_attach.html.erb b/app/views/layouts/_base_homework_attach.html.erb index e9324a98f..7301c87dc 100644 --- a/app/views/layouts/_base_homework_attach.html.erb +++ b/app/views/layouts/_base_homework_attach.html.erb @@ -5,15 +5,32 @@
- - + + - - +
高校课程实践社区<%= 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(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, 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)%>

+

+ <%=link_to "主页", home_path %> > + + <%=l(:label_courses_management_platform)%> + > + + <%= 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, 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