Sha256: 96f135bda6c7cbb74fc1ab029133d5c1526b8c4e132e3540998f4e90d6ac52ac

Contents?: true

Size: 1.7 KB

Versions: 12

Compression:

Stored size: 1.7 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"=>"true", :"aria-controls"=>"submenu#{ind}" do
        %span
          %b #{m[:title]}
        %b.arrow.fa.fa-angle-down.for-expanded
        %b.arrow.fa.fa-angle-left.for-collapsed

      %ul.submenu.collapse.in{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

12 entries across 12 versions & 1 rubygems

Version Path
optimacms-0.2.26 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.2.25 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.2.24 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.2.21 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.2.20 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.2.16 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.2.15 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.2.14 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.2.13 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.2.12 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.2.11 app/views/optimacms/admin/shared/_leftmenu.html.haml
optimacms-0.2.9 app/views/optimacms/admin/shared/_leftmenu.html.haml