组织未登录情况默认图片展示

This commit is contained in:
huang 2016-05-17 10:13:03 +08:00
parent 985b1e4c95
commit e9c35ae20f
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@
<div class="sn-header"> <div class="sn-header">
<div class="sn-row sn-bg-white"> <div class="sn-row sn-bg-white">
<div class="sn-logo"> <div class="sn-logo">
<% if @org_logo_attchment.blank? %> <% if @org_logo_attchment.blank? || !User.current.logged? %>
<img src="/images/org_new_style/logo.jpg" width="367" height="63" class="sn-mt13 sn-fl" alt=""/> <img src="/images/org_new_style/logo.jpg" width="367" height="63" class="sn-mt13 sn-fl" alt=""/>
<% else %> <% else %>
<img src="/attachments/<%= @org_logo_attchment.id %>/<%= @org_logo_attchment.filename %>" width="367" height="63" class="sn-mt13 sn-fl" alt=""> <img src="/attachments/<%= @org_logo_attchment.id %>/<%= @org_logo_attchment.filename %>" width="367" height="63" class="sn-mt13 sn-fl" alt="">