Sha256: 2925c61f7e8b0da5a23aa3cfda703591e42552c4f9918ef29a3ded34d1ccd2ed

Contents?: true

Size: 1.45 KB

Versions: 2

Compression:

Stored size: 1.45 KB

Contents

!!!
%html{lang: I18n.locale}
  %head
    %meta{charset: 'utf-8'}
    %title= @title
    %link{href: "/favicon.ico?#{@app_title.to_s.downcase}", rel: 'icon', type: 'image/x-icon'}
    - Bhf.configuration.css.each do |css|
      = stylesheet_link_tag css
  %body
    
    = render partial: 'bhf/helper/flash', locals: {flash: flash}
    %header
      %h1
        - logo = if params[:bhf_area] && Rails.application.assets.find_asset("logo_#{params[:bhf_area]}_bhf.svg")
          - "logo_#{params[:bhf_area]}_bhf.svg"
        - else
          - Rails.application.assets.find_asset('logo_bhf.png') ? 'logo_bhf.png' : 'logo_bhf.svg'
        
        = link_to image_tag(logo), @root_link ? @root_link : main_app.root_url, data: {no_turbolink: true}

      - if @areas && @areas.length > 1
        = select_tag :area_select, options_from_collection_for_select(@areas, 'path', 'name', main_app.bhf_path(params[:bhf_area])), class: 'icon'
        
      - if @settings && @settings.pages.any?
        %nav
          %ul{class: ('shrink_space' if @settings.pages.count > 7)}
            - @settings.pages.each do |page|
              %li{class: ('active' if @page == page)}
                = link_to t("bhf.pages.navigation.#{page}", default: page.titleize), page_path(page)

    #content
      #main
        = yield

    %footer
      = render 'bhf/user'
      = render 'bhf/footer'

    - Bhf.configuration.js.each do |js|
      = javascript_include_tag js, data: {turbolinks_eval: false}


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bhf-0.10.12 app/views/layouts/bhf/application.haml
bhf-0.10.11 app/views/layouts/bhf/application.haml