Sha256: 36be8bf2f2deeaee333f3c6513d880dddeb59e90117067eff5385179e563dfda

Contents?: true

Size: 1.38 KB

Versions: 25

Compression:

Stored size: 1.38 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
      %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: header_block(block, title: yield(:application_name), tagline: yield(:application_tagline)), buttons: @links.select { |link| !link.is_a? Hash }
%script
  var scroll = new SmoothScroll('a[href*="#"]');

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
tramway-landing-1.8.1 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.8 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.7.2 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.7.1.2 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.7.1.1 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.7.1 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.7 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.6 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.5.2 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.5.1.2 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.5.1.1 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.5.1 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.5 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.4.7.4 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.4.7.3 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.4.7.2 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.4.7.1 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.4.7 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.4.6 app/views/tramway/landing/blocks/block_types/_header.html.haml
tramway-landing-1.4.5 app/views/tramway/landing/blocks/block_types/_header.html.haml