- page_title = content_for(:title).nil? ? I18n.t('pugin.layouts.pugin.website_brand') : "#{content_for(:title)} - #{ I18n.t('pugin.layouts.pugin.website_brand')}" !!! 5 %html{lang:'en'} %head %title= page_title %link{rel: 'stylesheet', href: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/stylesheets/legacy.css" } %link{rel: 'stylesheet', href: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/stylesheets/main.css" } %meta{name: 'viewport', content: 'width=device-width, initial-scale=1.0'} %meta{'http-equiv' => 'X-UA-Compatible', content: 'IE=edge'} %link{rel: 'shortcut icon', type: 'image/x-icon', href: "#{Pugin::STATIC_ASSET_PUBLIC_LOCATION_URL}/favicon.ico"} %link{rel: 'search', type: 'application/opensearchdescription+xml', href: opensearch_description_url, title: I18n.t('pugin.layouts.pugin.website_brand')} - if @app_insights_request_id = render partial: 'pugin/meta/application_insights', locals: { app_insights_request_id: @app_insights_request_id } - if ENV['GTM_KEY'] = render partial: 'pugin/javascript/google_tag_manager' - unless Pugin.alternates.empty? / ======================== / See below for data views / ======================== - Pugin.alternates.each do |alternate| %link{rel: 'alternate', type: alternate[:type], href: alternate[:href].html_safe} = render partial: 'pugin/meta/opengraph', locals: { page_title: page_title } %body - if ENV['GTM_KEY'] = render partial: 'pugin/javascript/google_tag_manager_noscript' = render partial: 'pugin/javascript/has_js' = render partial: 'pugin/elements/skip-content' = render partial: 'pugin/components/status-cookie' = render partial: 'pugin/components/status', locals: { status: nil } if Pugin::Feature::StatusBanner.enabled? = render 'pugin/components/header' %main = yield = render 'pugin/components/footer' %script{src: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/javascripts/main.js"} - if Pugin::Feature::AssetOverrides.enabled? %script{src: "#{Pugin::STATIC_ASSET_PUBLIC_LOCATION_URL}/_hybrid-bills/javascripts/main.js"} = render partial: 'pugin/javascript/pingdom' if Pugin::Feature::Pingdom.enabled?