<%= render 'layouts/google_analytics' %> <%= javascript_include_tag "jquery.floatThead.min" %> <%# stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => false %> <%= stylesheet_link_tag 'application', media: 'all' %> <%= javascript_include_tag :layout %> <%# javascript_include_tag 'application', 'data-turbolinks-track' => false %> <%= javascript_include_tag 'application' %> <%= csrf_meta_tag %> <%= render 'layouts/google_analytics' %> <% if user_signed_in? then %> <% @empresa = Empresa.find(current_user.empresa_id) %> <% @logo = StaticFile.where("empresa_id"=>@empresa.id, "name"=>"logo").first %> <% if @logo != nil then @logo = @logo.archivo.url end %> <% end %> <% if user_signed_in? %> <% end %>
<%= yield %>