Sha256: 652809457346ed5d91722d0471ef942eb45623f5fb38c2c70d05d2375dfb057e

Contents?: true

Size: 1.5 KB

Versions: 3

Compression:

Stored size: 1.5 KB

Contents

doctype html
html lang="ru"
  head
    meta charset="UTF-8"
    meta name="viewport" content="width=device-width, maximum-scale=1"
    title= yield(:title) || page_title
    = yield :meta
    = csrf_meta_tags
    
    / - cache 'favicons', skip_digest: true do
    /   = render partial: 'blocks/favicon'

    - async = false #Rails.env.production?
    = stylesheet_link_tag "application", media: "all", async: async
    = javascript_include_tag "application", async: async
    /[if lt IE 9]
      = javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js", async: async
    - cache 'layouts/application/custom_head', skip_digest: true do
      - _cache_key = ['views/layouts/application/custom_head']
      css:
        #{Settings.ns('application_layout').custom_css(default: '', kind: :css, label: "Дополнительный CSS", cache_keys: _cache_key)}
      javascript:
        #{Settings.ns('application_layout').custom_js(default: '', kind: :js, label: "Дополнительный JS", cache_keys: _cache_key)}

  body{class="application_layout #{controller_name} #{action_name} #{controller_name}_#{action_name}"}

    - cache 'preloader', skip_digest: true do
      = render partial: 'blocks/preloader'
      
    #root role="main"
    
      header#header
        = render partial: 'blocks/header'
      
      = render "shared/messages"
      
      #content
        = yield

    footer#footer
      = render partial: 'blocks/footer'

    = render partial: 'hancock/toplink/toplink'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hancock_cms-1.0.1 app/views/layouts/application.html.slim
hancock_cms-2.0.0.2 app/views/layouts/application.html.slim
hancock_cms-1.0.0.4 app/views/layouts/application.html.slim