Sha256: 18cc9d1e8176d58e710224fa0d8a2ea0aaf3fd7dc2479b9ed696e39a89bb154a

Contents?: true

Size: 1.45 KB

Versions: 29

Compression:

Stored size: 1.45 KB

Contents

= javascript_include_tag 'tramway/landing/smooth-scroll'
- content_for(:navbar) do
  %nav.navbar.navbar-expand-lg.navbar-dark.indigo.scrolling-navbar.fixed-top
    = link_to yield(:application_name), '#', class: 'navbar-brand'
    %button.navbar-toggler{ type: :button, data: { toggle: :collapse, target: '#navbarSupportedContent' }, aria: { controls: 'navbarSupportedContent', expanded: 'false', label: 'Toggle navigation' } }
      = fa_icon :bars
    .collapse.navbar-collapse#navbarSupportedContent
      - if @links&.any?
        %ul.navbar-nav.mr-auto
          - @links.each do |link|
            - if link.is_a? Hash
              .nav-item.dropdown
                %a.nav-link.dropdown-toggle{ id: "dropdown_menu_button_#{link.keys.first}", aria: { expanded: :false, haspopup: :true }, data: { toggle: :dropdown } }
                  = t(".#{link.keys.first}")
                .dropdown-menu.dropdown-primary{ aria: { labelledby: "dropdown_menu_button_#{link.keys.first}" } }
                  - link.values.first.each do |menu_item|
                    = link_to menu_item.title, menu_item.link, class: 'dropdown-item'
            - else
              = menu_item link.title, link.link
= render 'tramway/landing/blocks/templates/full_page', block: OpenStruct.new(title: yield(:application_name), tagline: yield(:application_tagline), background: block.background), buttons: @links&.select { |link| !link.is_a? Hash }
%script
  var scroll = new SmoothScroll('a[href*="#"]');

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
tramway-landing-2.1.0.2 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-2.1.0.1 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-2.1 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-2.0.1.6 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-2.0.1.5 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-2.0.1.4 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-2.0.1.3 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-2.0.1.2 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-2.0.1.1 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-2.0.1 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-2.0.0.3 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-2.0.0.2 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-2.0.0.1 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-2.0 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.8.3.3 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.8.3.2 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.8.3.1 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.8.3 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.8.2.8 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.8.2.7 app/views/tramway/landing/blocks/block_types/_header.html.haml