模式7空白内容显示

This commit is contained in:
huang 2016-05-04 19:36:30 +08:00
parent d86fec6f03
commit d75f39cd81
1 changed files with 9 additions and 9 deletions

View File

@ -19,7 +19,7 @@
<h2 class="h2-title "><%= field.name %></h2> <h2 class="h2-title "><%= field.name %></h2>
<div class="sn-index-wx"> <div class="sn-index-wx">
<% if iamge_path.nil? %> <% if iamge_path.nil? %>
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class => "fl sn-index-wximg" %> <%= link_to image_tag("/images/default_blank/right-02.jpg", :width => "104", :height => "104"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class => "fl sn-index-wximg" %>
<% else %> <% else %>
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "104", :height => "104"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class => "fl sn-index-wximg" %> <%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "104", :height => "104"), org_document_comment_path(:id => document.id, :organization_id => document.organization.id), :target => "_blank", :class => "fl sn-index-wximg" %>
<% end %> <% end %>
@ -34,7 +34,7 @@
<h2 class="h2-title "><%= field.name %></h2> <h2 class="h2-title "><%= field.name %></h2>
<div class="sn-index-wx"> <div class="sn-index-wx">
<% if iamge_path.nil? %> <% if iamge_path.nil? %>
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class => "fl sn-index-wximg" %> <%= link_to image_tag("/images/default_blank/right-02.jpg", :width => "104", :height => "104"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class => "fl sn-index-wximg" %>
<% else %> <% else %>
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "104", :height => "104"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class => "fl sn-index-wximg" %> <%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "104", :height => "104"), board_message_url_in_org(message.board.id,message.id), :target => "_blank", :class => "fl sn-index-wximg" %>
<% end %> <% end %>
@ -46,7 +46,7 @@
<h2 class="h2-title "><%= field.name %></h2> <h2 class="h2-title "><%= field.name %></h2>
<div class="sn-index-wx"> <div class="sn-index-wx">
<% if iamge_path.nil? %> <% if iamge_path.nil? %>
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), board_message_path(message.board, activity), :target => "_blank", :class => "fl sn-index-wximg" %> <%= link_to image_tag("/images/default_blank/right-02.jpg", :width => "104", :height => "104"), board_message_path(message.board, activity), :target => "_blank", :class => "fl sn-index-wximg" %>
<% else %> <% else %>
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "104", :height => "104"), board_message_path(message.board, activity), :target => "_blank", :class => "fl sn-index-wximg" %> <%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "104", :height => "104"), board_message_path(message.board, activity), :target => "_blank", :class => "fl sn-index-wximg" %>
<% end %> <% end %>
@ -61,7 +61,7 @@
<h2 class="h2-title "><%= field.name %></h2> <h2 class="h2-title "><%= field.name %></h2>
<div class="sn-index-wx"> <div class="sn-index-wx">
<% if iamge_path.nil? %> <% if iamge_path.nil? %>
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), news_path(news), :target => "_blank", :class => "fl sn-index-wximg" %> <%= link_to image_tag("/images/default_blank/right-02.jpg", :width => "104", :height => "104"), news_path(news), :target => "_blank", :class => "fl sn-index-wximg" %>
<% else %> <% else %>
<%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "104", :height => "104"), news_path(news), :target => "_blank", :class => "fl sn-index-wximg" %> <%= link_to image_tag("/files/uploads/image#{iamge_path}", :width => "104", :height => "104"), news_path(news), :target => "_blank", :class => "fl sn-index-wximg" %>
<% end %> <% end %>
@ -75,7 +75,7 @@
<div class="sn-index-wxbox" style="display:<%= field.hide == 0?'block':'none' %>;"> <div class="sn-index-wxbox" style="display:<%= field.hide == 0?'block':'none' %>;">
<h2 class="h2-title "><%= field.name %></h2> <h2 class="h2-title "><%= field.name %></h2>
<div class="sn-index-wx"> <div class="sn-index-wx">
<img class="fl sn-index-wximg" src="/images/wx.gif" width="104" height="104" alt=""/> <img class="fl sn-index-wximg" src="/images/default_blank/right-02.jpg" width="104" height="104" alt=""/>
<p class="fl sn-index-txt">暂无内容!</p> <p class="fl sn-index-txt">暂无内容!</p>
<div class="cl"></div> <div class="cl"></div>
</div> </div>
@ -86,12 +86,12 @@
<div class="sn-index-smallbanner" style="display:<%= field.hide == 0?'block':'none' %>;"> <div class="sn-index-smallbanner" style="display:<%= field.hide == 0?'block':'none' %>;">
<% if !field.subfield_subdomain_dir.nil? %> <% if !field.subfield_subdomain_dir.nil? %>
<% if !request.local? and Secdomain.where("sub_type=2 and pid=?", @organization.id).count > 0 and Secdomain.where("sub_type=2 and pid=?", @organization.id).map(&:subname).include?(request.subdomain) %> <% if !request.local? and Secdomain.where("sub_type=2 and pid=?", @organization.id).count > 0 and Secdomain.where("sub_type=2 and pid=?", @organization.id).map(&:subname).include?(request.subdomain) %>
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), show_subfield_without_id_path(:sub_dir_name => field.subfield_subdomain_dir.name), :target => "_blank" %> <%= link_to image_tag("/images/default_blank/right-02.jpg", :width => "104", :height => "104"), show_subfield_without_id_path(:sub_dir_name => field.subfield_subdomain_dir.name), :target => "_blank" %>
<% else %> <% else %>
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), show_org_subfield_organization_path(:id => @organization.id, :sub_dir_name => field.subfield_subdomain_dir.name), :target => "_blank" %> <%= link_to image_tag("/images/default_blank/right-02.jpg", :width => "104", :height => "104"), show_org_subfield_organization_path(:id => @organization.id, :sub_dir_name => field.subfield_subdomain_dir.name), :target => "_blank" %>
<% end %> <% end %>
<% else %> <% else %>
<%= link_to image_tag("/images/default_blank/ad-default.jpg", :width => "104", :height => "104"), org_subfield_files_path(field), :class => "more-btn-center mt30", :target => "_blank" %> <%= link_to image_tag("/images/default_blank/right-02.jpg", :width => "104", :height => "104"), org_subfield_files_path(field), :class => "more-btn-center mt30", :target => "_blank" %>
<% end %> <% end %>
</div> </div>
<% end %> <% end %>