Sha256: 4551fa4c8b2974b7ee3d59957b2fe43eeb4517b86d794c39fc909f4b6afdb034

Contents?: true

Size: 1.69 KB

Versions: 8

Compression:

Stored size: 1.69 KB

Contents

%ul.nav.nav-list
  %li
    =link_to 'Dashboard', Optimacms::Engine.routes.url_helpers.dashboard_path

  - Optimacms::AdminMenu::AdminMenu.get_menu.each_with_index do |m, ind|
    %li
      =link_to "#submenu#{ind}", :"data-toggle"=>"collapse", :"aria-expanded"=>"false", :"aria-controls"=>"submenu#{ind}" do
        %span #{m[:title]}
        %b.arrow.fa.fa-angle-down.for-expanded
        %b.arrow.fa.fa-angle-left.for-collapsed

      %ul.submenu.collapse{id: "submenu#{ind}"}
        - if m[:submenu]
          - m[:submenu].each do |sm|
            - u = sm[:route] ? send("#{sm[:route]}_path") : sm[:url]
            - next if u.nil? || u===false

            %li
              =link_to sm[:title], u



  -#
    %li.active

      =link_to '#submenu1', :"data-toggle"=>"collapse", :"aria-expanded"=>"true", :"aria-controls"=>"submenu1" do
        %span Content
        %b.arrow.fa.fa-angle-down.for-expanded
        %b.arrow.fa.fa-angle-left.for-collapsed

      %ul#submenu1.submenu.collapse.in
        %li=link_to 'Pages', pages_path
        %li=link_to 'Templates', templates_path
        -#%li=link_to 'Layouts', layouts_path
        -#%li=link_to 'Data Blocks - NOT WORK', 'datablocks_path'
        %li=link_to 'Media', mediafiles_path

    -#%li
    =link_to '#submenu_system', :"data-toggle"=>"collapse", :"aria-expanded"=>"false", :"aria-controls"=>"submenu_system" do
      %span System
      %b.arrow.fa.fa-angle-down.for-expanded
      %b.arrow.fa.fa-angle-left.for-collapsed

    %ul#submenu_system.submenu_system.collapse
      %li=link_to 'App', app_sys_path
      %li=link_to 'Maintenance', "#"
      %li=link_to 'Backups', "#"
      %li=link_to 'Info', "#"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
optimacms-0.2.3 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.1.59 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.1.58 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.1.57 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.1.56 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.1.54 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.1.51 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.1.50 app/views/optimacms/admin/shared/_leftmenu.html.haml