Sha256: 5079dfd3f532a50b4fe042c6ac7f4a765d11394f680209dc328abeba47ec8cfc

Contents?: true

Size: 1.2 KB

Versions: 7

Compression:

Stored size: 1.2 KB

Contents

= render '/admin/cms/partials/navigation_before'

%ul.navigation
  - if admin_page?
    - Cms::Fortress.configuration.settings_resources.each do |resource|
      - if can? :view, "settings.#{resource[:name]}"
        - path = begin; eval(resource[:path]); rescue; end
        - if path
          = leftnav_item t(resource[:title]), path

    = render 'cms/fortress/admin/left_settings_nav'

  - elsif design_page?
    - Cms::Fortress.configuration.design_resources.each do |resource|
      - if can? :view, "designs.#{resource[:name]}"
        - path = begin; eval(resource[:path]);rescue;end
        - if path
          = leftnav_item t(resource[:title]), path

    = render 'cms/fortress/admin/left_designs_nav'

  - elsif content_page?
    - Cms::Fortress.configuration.content_resources.each do |resource|
      - if can? :view, "contents.#{resource[:name]}"
        - path = begin; eval(resource[:path]);rescue;end
        - if path
          = leftnav_item t(resource[:title]), path

    = render 'cms/fortress/admin/left_contents_nav'

    = cms_hook :navigation

  - else
    = render 'cms/fortress/admin/left_nav'


  = render '/admin/cms/partials/navigation_inner'

= render '/admin/cms/partials/navigation_after'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cms-fortress-1.1.8 app/views/layouts/admin/cms/_left.html.haml
cms-fortress-1.1.7 app/views/layouts/admin/cms/_left.html.haml
cms-fortress-1.1.6 app/views/layouts/admin/cms/_left.html.haml
cms-fortress-1.1.5 app/views/layouts/admin/cms/_left.html.haml
cms-fortress-1.1.4 app/views/layouts/admin/cms/_left.html.haml
cms-fortress-1.1.3 app/views/layouts/admin/cms/_left.html.haml
cms-fortress-1.1.2 app/views/layouts/admin/cms/_left.html.haml