1、修改进入系统首页报错

2、增加组织的默认图片
This commit is contained in:
sw 2015-03-05 14:42:46 +08:00
parent 3b4bf8b99d
commit 45fe622f26
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
<% unless organization.name.blank? %>
<ul>
<li >
<img src="/images/organization_logo.jpg" width="30" height="30" alt="#{project.enterprise_name}" />
<img src="/images/organization_logo.jpg" width="30" height="30" alt="<%= organization.name%>" />
<%= link_to organization.name, home_path(:organization => organization.id) %>
</li>
</ul>

View File

@ -35,10 +35,10 @@
<% if get_avatar?(@first_page) %>
<%= image_tag(url_to_avatar(@first_page), width:@first_page.image_width,height: @first_page.image_height) %>
<% else %>
<%= image_tag @organization.logo_link, width:@first_page.image_width,height: @first_page.image_height %>
<%= image_tag '/images/transparent.png', width:@first_page.image_width,height: @first_page.image_height %>
<% end %>
<% else %>
<%= image_tag(url_to_avatar(@enterprise_page), width:@first_page.image_width,height: @first_page.image_height) %>
<%= image_tag(url_to_avatar(@organization), width:@first_page.image_width,height: @first_page.image_height) %>
<% end %>
</div>
<div class="welcome_left" id="welcome_left">

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB