course网站中大学名加上该大学在本站的链接

This commit is contained in:
z9hang 2014-05-09 11:47:41 +08:00
parent a57d5fd823
commit 7a341972e7
2 changed files with 14 additions and 3 deletions

View File

@ -23,7 +23,7 @@
<%= image_tag(@logoLink, size:'75x75') %>
</div>
<div class="welcome_left" >
<div class="course welcome_left" >
<br />
<span class="font_welcome_school"> <% 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 %>
<br />
<% 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'}%>
<br />
<% end %>
<% end %>

View File

@ -452,4 +452,15 @@ a.attachments_list_color {
font-size: 10pt;
}
/************************** 贴吧动态 结束 ****************************
/************************** 贴吧动态 结束 ****************************/
/************************** 学校课程 开始 ****************************/
.course{
}
.course .font_welcome_school{
font-family: Tahoma,"Microsoft YaHei";
font-weight: bold;
font-size: 20px;
color:#e8770d;
}
/************************** 学校课程 结束 ****************************/