Sha256: 62a9667055e71c2a3b3d305733a7555af02eba30d97b7c9fec477baf8fe48181
Contents?: true
Size: 929 Bytes
Versions: 17
Compression:
Stored size: 929 Bytes
Contents
<%= content_for :js do %> <%= javascript_include_tag "caboose/application" %> <% Caboose::plugin_hook('global_js_assets', []).each do |file| %> <%= javascript_include_tag file %> <% end %> <%= yield :caboose_js %> <% end %> <%= content_for :css do %> <%= stylesheet_link_tag "caboose/application", :media => "all" %> <%= yield :caboose_css %> <% end %> <% if (File.exists?("#{Rails.root}/app/views/layouts/layout_#{@page.id}.html.erb") || File.exists?("#{Rails.root}/app/views/layouts/layout_#{@page.id}.html.haml")) %> <%= render :file => "layouts/layout_#{@page.id}" %> <% elsif (!@page.layout.nil? && @page.layout.length > 0 && (File.exists?("#{Rails.root}/app/views/layouts/layout_#{@page.layout}.html.erb") || File.exists?("#{Rails.root}/app/views/layouts/layout_#{@page.layout}.html.haml"))) %> <%= render :file => "layouts/layout_#{@page.layout}" %> <% else %> <%= render :file => "layouts/layout_default" %> <% end %>
Version data entries
17 entries across 17 versions & 1 rubygems