Sha256: 1029bb28c9c83bdee30d7fbcd6e84e2f19274a8745b828603a1a1a578bb8f7d8

Contents?: true

Size: 1.99 KB

Versions: 19

Compression:

Stored size: 1.99 KB

Contents

- if default_theme?
  %nav.navbar.navbar-default(role="navigation")
    .container-fluid
      .navbar-header
        %button.navbar-toggle(type="button" data-toggle="collapse" data-target="#main-nav")
          %span.sr-only= t('cms.fortress.toggle_navigation')
          %span.icon-bar
          %span.icon-bar
          %span.icon-bar
        = link_to settings.title, settings.title_link, class: 'navbar-brand'

      .collapse.navbar-collapse#main-nav
        %ul.nav.navbar-nav
          - if @site && !@site.new_record?
            %li= topnav_item "Dashboard", dashboard_site_path, current_page?(dashboard_site_path)

            - if Cms::Fortress.configuration.content_resources.any? {|resource| can? :view, "contents.#{resource[:name]}" }
              = topnav_item t("cms.fortress.contents"), |
                @site && !@site.new_record? ? comfy_admin_cms_site_pages_path(@site) : comfy_admin_cms_sites_pages_path, |
                content_page?

            - if Cms::Fortress.configuration.design_resources.any? {|resource| can? :view, "designs.#{resource[:name]}" }
              = topnav_item t("cms.fortress.design"), |
                @site && !@site.new_record? ? comfy_admin_cms_site_layouts_path(@site) : comfy_admin_cms_sites_pages_path, |
                design_page?

            - if Cms::Fortress.configuration.settings_resources.any? {|resource| can? :view, "settings.#{resource[:name]}" }
              = topnav_item t("cms.fortress.settings"), comfy_admin_cms_sites_path, admin_page?

          = render 'cms/fortress/admin/topnav'

        - if current_cms_fortress_user
          .btn-group.pull-right(style="margin-top: 8px;")
            %button.btn.btn-default.dropdown-toggle(type="button" data-toggle="dropdown")
              = current_cms_fortress_user.display_name
              %span.caret
            %ul.dropdown-menu(role="menu")
              %li
                = link_to t('cms.fortress.logout'), destroy_cms_fortress_user_session_path, :method => 'delete'

- else
  = themed_partial('menu')

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cms-fortress-1.3.15 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.14 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.13 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.12 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.11 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.10 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.9 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.8 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.7 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.6 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.5 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.4 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.3 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.2 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.1 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.0 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.0.rc3 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.0.rc2 app/views/cms/fortress/shared/_menu.html.haml
cms-fortress-1.3.0.rc1 app/views/cms/fortress/shared/_menu.html.haml