From 7a341972e7bd43de0d45ca813e7eccd75959d956 Mon Sep 17 00:00:00 2001 From: z9hang Date: Fri, 9 May 2014 11:47:41 +0800 Subject: [PATCH] =?UTF-8?q?course=E7=BD=91=E7=AB=99=E4=B8=AD=E5=A4=A7?= =?UTF-8?q?=E5=AD=A6=E5=90=8D=E5=8A=A0=E4=B8=8A=E8=AF=A5=E5=A4=A7=E5=AD=A6?= =?UTF-8?q?=E5=9C=A8=E6=9C=AC=E7=AB=99=E7=9A=84=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/welcome/course.html.erb | 4 ++-- public/stylesheets/welcome.css | 13 ++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/app/views/welcome/course.html.erb b/app/views/welcome/course.html.erb index b8b755b58..f2ae619d8 100644 --- a/app/views/welcome/course.html.erb +++ b/app/views/welcome/course.html.erb @@ -23,7 +23,7 @@ <%= image_tag(@logoLink, size:'75x75') %> -
+

<% if params[:school_id].nil? and User.current.user_extensions.school.nil? %> <% else%> @@ -33,7 +33,7 @@ <%= School.find(User.current.user_extensions.school.id).name %>
<% else %> - <%= School.find(params[:school_id]).name %> + <%= link_to School.find(params[:school_id]).name,options={:action => 'course',:school_id => params[:school_id]}, html_options={:class => 'font_welcome_school',:method => 'get'}%>
<% end %> <% end %> diff --git a/public/stylesheets/welcome.css b/public/stylesheets/welcome.css index 2533305f7..f7756e5b8 100644 --- a/public/stylesheets/welcome.css +++ b/public/stylesheets/welcome.css @@ -452,4 +452,15 @@ a.attachments_list_color { font-size: 10pt; } - /************************** 贴吧动态 结束 **************************** \ No newline at end of file + /************************** 贴吧动态 结束 ****************************/ + /************************** 学校课程 开始 ****************************/ + .course{ + + } + .course .font_welcome_school{ + font-family: Tahoma,"Microsoft YaHei"; + font-weight: bold; + font-size: 20px; + color:#e8770d; +} +/************************** 学校课程 结束 ****************************/ \ No newline at end of file