1.修改未配置页脚时进入首页报错的BUG
This commit is contained in:
parent
4082dbed5b
commit
802c0ea565
|
@ -763,7 +763,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def find_web_footer
|
||||
@organizer = WebFooterOrganizer.first
|
||||
@organize = WebFooterOranizer.first
|
||||
@companies = WebFooterCompany.all
|
||||
end
|
||||
end
|
||||
|
|
|
@ -10,8 +10,10 @@
|
|||
<%= @organize.description.html_safe unless @organize.nil?%>
|
||||
</p>
|
||||
<div id="logo_link">
|
||||
<% @companys.each do |company| %>
|
||||
<span class="footer_logo_link"><%= link_to image_tag(url_to_avatar(company),:size=>"100x30",:alt=>company.name),company.url, :target => "_blank" %></span>
|
||||
<% unless @companys.nil?%>
|
||||
<% @companys.each do |company| %>
|
||||
<span class="footer_logo_link"><%= link_to image_tag(url_to_avatar(company),:size=>"100x30",:alt=>company.name),company.url, :target => "_blank" %></span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
<!--gcm-->
|
||||
|
|
Loading…
Reference in New Issue