Sha256: 9bb038d68c5cb2bae29246950b483040599097c83fe62644a44fc13ee784ab0c

Contents?: true

Size: 1.17 KB

Versions: 9

Compression:

Stored size: 1.17 KB

Contents

.navmenu.navmenu-default.navmenu-fixed-left.offcanvas-sm{ class: ('dark-theme' if Para.config.dark_theme), data: { :'admin-left-sidebar' => true } }
  = link_to admin_path, class: 'navmenu-brand' do
    = t('para.admin.brand').html_safe

  %ul.nav.navmenu-nav
    - if admin_component_sections.any?
      - admin_component_sections.each_with_index do |component_section, index|
        - next unless component_section.components.any? { |component| can?(:manage, component) }

        %li.component-section-item
          = link_to "#collapse-section-#{index}", class: 'component-section-title', data: { toggle: 'collapse' } do
            = component_section.name
            %i.fa.fa-angle-up.pull-right

          %ul.component-section-list-items.collapse.in{ id: "collapse-section-#{index}" }
            - component_section.components.each do |component|
              - if can?(:manage, component) && show_component?(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

9 entries across 9 versions & 1 rubygems

Version Path
para-0.8.10 app/views/para/admin/shared/_navigation.html.haml
para-0.8.9 app/views/para/admin/shared/_navigation.html.haml
para-0.8.8 app/views/para/admin/shared/_navigation.html.haml
para-0.8.7 app/views/para/admin/shared/_navigation.html.haml
para-0.8.5 app/views/para/admin/shared/_navigation.html.haml
para-0.8.3.3 app/views/para/admin/shared/_navigation.html.haml
para-0.8.3.2 app/views/para/admin/shared/_navigation.html.haml
para-0.8.3.1 app/views/para/admin/shared/_navigation.html.haml
para-0.8.3 app/views/para/admin/shared/_navigation.html.haml