Sha256: 77994e0c00802e8589fb4569dbeba31ded15faa45486344fc1fb59e863a39af0

Contents?: true

Size: 1.79 KB

Versions: 5

Compression:

Stored size: 1.79 KB

Contents

- if @site && !@site.new_record?
  - if Cms::Fortress.configuration.content_resources.any? {|resource| can? :view, "contents.#{resource[:name]}" }

    %li.dropdown(class="#{ "active" if content_page? }")
      %a.dropdown-toggle(data-toggle='dropdown' href='#')
        = t("cms.fortress.contents")
        %b.caret
      %ul.dropdown-menu

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


  - if Cms::Fortress.configuration.design_resources.any? {|resource| can? :view, "designs.#{resource[:name]}" }

    %li.dropdown(class="#{ "active" if design_page? }")
      %a.dropdown-toggle(data-toggle='dropdown' href='#')
        = t("cms.fortress.design")
        %b.caret
      %ul.dropdown-menu
        - Cms::Fortress.configuration.design_resources.each do |resource|
          - if can? :view, "designs.#{resource[:name]}"
            - path = begin; eval(resource[:path]);rescue;end
            - if path
              = topnav_item t(resource[:title]), path, current_page?(path)



  - if Cms::Fortress.configuration.settings_resources.any? {|resource| can? :view, "settings.#{resource[:name]}" }
    %li.dropdown(class="#{ "active" if admin_page? }")
      %a.dropdown-toggle(data-toggle='dropdown' href='#')
        = t("cms.fortress.setttings")
        %b.caret
      %ul.dropdown-menu
        - Cms::Fortress.configuration.settings_resources.each do |resource|
          - if can? :view, "settings.#{resource[:name]}"
            - path = begin; eval(resource[:path]); rescue; end
            - if path
              = topnav_item t(resource[:title]), path, current_page?(path)


Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cms-fortress-1.1.8 app/views/cms/fortress/themes/wide/_admin_topnav.html.haml
cms-fortress-1.1.7 app/views/cms/fortress/themes/wide/_admin_topnav.html.haml
cms-fortress-1.1.6 app/views/cms/fortress/themes/wide/_admin_topnav.html.haml
cms-fortress-1.1.5 app/views/cms/fortress/themes/wide/_admin_topnav.html.haml
cms-fortress-1.1.4 app/views/cms/fortress/themes/wide/_admin_topnav.html.haml