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

Version Path
caboose-cms-0.3.50 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.49 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.48 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.47 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.46 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.45 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.44 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.43 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.42 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.41 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.40 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.39 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.38 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.37 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.36 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.35 app/views/layouts/caboose/application.html.erb
caboose-cms-0.3.34 app/views/layouts/caboose/application.html.erb