% if Trestle.config.turbolinks %>
<% end %> <%= csrf_meta_tags %>
<%= [title, Trestle.config.site_title].join(' :: ') %>
<%= favicon_link_tag Trestle.config.favicon if Trestle.config.favicon %> <%= stylesheet_link_tag "trestle/admin", 'data-turbolinks-track': 'reload' %> <%= stylesheet_link_tag "trestle/theme", 'data-turbolinks-track': 'reload' if Trestle.config.theme %> <%= stylesheet_link_tag "trestle/custom", 'data-turbolinks-track': 'reload' %> <%= hook :stylesheets %> <%= javascript_include_tag "turbolinks" if Trestle.config.turbolinks rescue nil %> <%= javascript_include_tag "trestle/admin", 'data-turbolinks-track': 'reload' %> <%= javascript_tag nonce: true do %> <% i18n_javascript_translations.each do |key, value| %> Trestle.i18n['<%= key %>'] = "<%= escape_javascript(value) %>"; <% end %> Trestle.localize(<%= Trestle.i18n_fallbacks.map { |l| "'#{l}'" }.join(", ").html_safe %>); <% end %> <%= hook :javascripts %> <%= content_for(:head) %> <%= hook :head %> >
<%= render "trestle/shared/sidebar" %>
<%= render "trestle/shared/header" %>
<%= yield %>
<%= render "trestle/shared/footer" %>