修改公司名字过长首页显示有问题

This commit is contained in:
sw 2015-01-31 16:19:13 +08:00
parent 23e5ab60ca
commit 79d1a069c2
1 changed files with 8 additions and 5 deletions

View File

@ -41,16 +41,19 @@
<%= image_tag '/images/avatars/Project/0', width:@first_page.image_width,height: @first_page.image_height %> <%= image_tag '/images/avatars/Project/0', width:@first_page.image_width,height: @first_page.image_height %>
<% end %> <% end %>
</div> </div>
<div class="welcome_left" id="welcome_left"> <div class="welcome_left" id="welcome_left" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
<% if @organization.nil? %> <% if @organization.nil? %>
<% unless @first_page.nil? %> <% unless @first_page.nil? %>
<%= @first_page.description.html_safe %> <%= @first_page.description.html_safe %>
<% end %> <% end %>
<% else %> <% else %>
<span class="font_welcome_school" style="color: #E8770D">
<span class="font_welcome_school" style="color: #E8770D"> <%= link_to @organization, options={:action => 'index', :enterprise => @organization}, html_options={ :method => 'get', :style => "color: #E8770D"} %> </span> <%= link_to @organization, options={:action => 'index', :enterprise => @organization}, html_options={ :method => 'get', :style => "color: #E8770D"} %>
<br/> </span>
<span class="font_welcome_trustie"> <%= @first_page.title %> </span> <br/>
<span class="font_welcome_trustie">
<%= @first_page.title %>
</span>
<% end %> <% end %>
</div> </div>
<div class="search-bar" id="search-bar"> <div class="search-bar" id="search-bar">