Sha256: 24b9a186a5e45f313adf9c6c83c61516cee56491572543f7fe53f129b09ce719

Contents?: true

Size: 843 Bytes

Versions: 4

Compression:

Stored size: 843 Bytes

Contents

%ul.sidebar-navigation.collapse.navbar-collapse#menu-sidebar
  %li.brand-logo
    = link_to admin_path do
      = t('para.admin.title')

  - if @component_sections.any?
    - @component_sections.each do |component_section|
      - next unless component_section.components.any? { |component| can?(:manage, component) }

      %li.component-section-item
        = link_to "#", class: 'component-section-title' do
          = component_section.name

        %ul.component-section-list-items
          - component_section.components.each do |component|
            - if can? :manage, component
              %li.component-item{ class: (@component == component) && 'active' }
                = link_to component.name, component.path

  - else
    %li.component-section-item
      .component-section-title
        = t('para.component.none_created')

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
para-0.5.4 app/views/para/admin/shared/_navigation.html.haml
para-0.5.3 app/views/para/admin/shared/_navigation.html.haml
para-0.5.1 app/views/para/admin/shared/_navigation.html.haml
para-0.5.0 app/views/para/admin/shared/_navigation.html.haml