Sha256: 779bcc0aea4c78ca81e7bf013975ed11e459593f021d6ea379bd9f5bbaedc197

Contents?: true

Size: 588 Bytes

Versions: 6

Compression:

Stored size: 588 Bytes

Contents

- global = index.resources.find { |r| r.name == 'Global Functionality' }

- unless global.blank?
  %strong.nav__heading= global.name
  %nav.nav
    %ul.nav__list
      - global.examples.each do |example|
        %li.nav__item
          = link_to example.description, "/#{example.href}"

- index.resources.each do |resource|
  - next if !global.blank? && resource.name == 'Global Functionality'

  %strong.nav__heading= resource.name
  %nav.nav
    %ul.nav__list
      - resource.examples.each do |example|
        %li.nav__item
          = link_to example.description, "/#{example.href}"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
workarea-api-4.5.6 app/views/workarea/api/docs/nav.haml
workarea-api-4.5.5 app/views/workarea/api/docs/nav.haml
workarea-api-4.5.4 app/views/workarea/api/docs/nav.haml
workarea-api-4.5.3 app/views/workarea/api/docs/nav.haml
workarea-api-4.5.2 app/views/workarea/api/docs/nav.haml
workarea-api-4.5.0 app/views/workarea/api/docs/nav.haml