Sha256: b6de8817df41e2ab27399b1253fa6f587df6effe23be105055d7e05ede8792e6

Contents?: true

Size: 1.9 KB

Versions: 8

Compression:

Stored size: 1.9 KB

Contents

= occams_admin_partial "occams/admin/cms/partials/navigation_before"

%nav.navbar.navbar-expand-lg
  %button.navbar-toggler{type: "button", data: {toggle:"collapse", target: "#leftnav"}, aria: {controls: "navbarSupportedContent", expanded: "false", label: "Toggle navigation"}}
    %i.fas.fa-bars

  #leftnav.navbar-collapse.collapse

    %ul.nav.nav-pills
      %li.nav-item
        = active_link_to occams_admin_cms_sites_path, class: "nav-link", active: ['occams/admin/cms/sites'] do
          = t('occams.admin.cms.base.sites')

      - if @site && !@site.new_record?
        %li.nav-item
          = active_link_to occams_admin_cms_site_layouts_path(@site), class: "nav-link" do
            = t('occams.admin.cms.base.layouts')
        %li.nav-item
          = active_link_to occams_admin_cms_site_pages_path(@site), class: "nav-link" do
            = t('occams.admin.cms.base.pages')
        %li.nav-item
          = active_link_to occams_admin_cms_site_snippets_path(@site), class: "nav-link" do
            = t('occams.admin.cms.base.snippets')
        %li.nav-item
          - unless is_active_link?(occams_admin_cms_site_files_path(@site))
            %a.cms-files-open-modal{href: occams_admin_cms_site_files_path(@site), title: "Open library"}
              %i.fas.fa-bars
          = active_link_to occams_admin_cms_site_files_path(@site), class: "nav-link" do
            = t('occams.admin.cms.base.files')

      = cms_hook :navigation

      = occams_admin_partial "occams/admin/cms/partials/navigation_inner"

= occams_admin_partial "occams/admin/cms/partials/navigation_after"

.left-footer
  = link_to 'Occams', 'https://github.com/avonderluft/occams', target: '_blank'
  %span.version= Occams::VERSION
  = link_to 'Rails', 'https://rubyonrails.org', target: '_blank'
  %span.version= Rails::version
  = link_to 'Ruby', 'https://www.ruby-lang.org', target: '_blank'
  %span.version= RUBY_VERSION
  %br
  = Rails.env.upcase

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
occams-1.0.7.3 app/views/layouts/occams/admin/cms/_left.html.haml
occams-1.0.7.2 app/views/layouts/occams/admin/cms/_left.html.haml
occams-1.0.7.1 app/views/layouts/occams/admin/cms/_left.html.haml
occams-1.0.7 app/views/layouts/occams/admin/cms/_left.html.haml
occams-1.0.6.1 app/views/layouts/occams/admin/cms/_left.html.haml
occams-1.0.6 app/views/layouts/occams/admin/cms/_left.html.haml
occams-1.0.5 app/views/layouts/occams/admin/cms/_left.html.haml
occams-1.0.4 app/views/layouts/occams/admin/cms/_left.html.haml