Sha256: 25e0b989a223a2c01cd167c12a6415200820fc7a65b877839af07ec5d595eae8

Contents?: true

Size: 1.19 KB

Versions: 4

Compression:

Stored size: 1.19 KB

Contents

!!!
%html
  %head
    = stylesheet_link_tag    'cms', media: 'all'
    = javascript_include_tag 'application'
    = stylesheet_link_tag 'codemirror'
    = javascript_include_tag 'cms'
    = csrf_meta_tags

  %body.cms
    .navbar.navbar-fixed-top.main-navigation
      .navbar-inner
        .container
          %button.btn.btn-navbar{type: 'button', :'data-toggle' => 'collapse', :'data-target' => '.nav-collapse'}
            %span.icon-bar
            %span.icon-bar
            %span.icon-bar

          .nav-collapse.collapse
            %ul.nav
              %li= link_to 'Home', root_path
            %ul.nav.pull-right
              %li= link_to 'Sign out', session_path, method: 'delete', class: 'session'

    .container
      = render partial: 'layouts/flash', locals: { flash: flash }

      .row
        .span3
          %h5 CMS
          %ul.nav.nav-list
            - CMS::Configuration.types.each do |type|
              %li{class: "#{if defined?(subject) && type.subject == subject.name then 'active' end}"}
                = link_to send("cms_#{type.model_name.collection}_path") do
                  %i.icon-chevron-right
                  = type.model_name.human.pluralize

        .span9= yield

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
honey-cms-0.3.12 app/views/layouts/cms.html.haml
honey-cms-0.3.11 app/views/layouts/cms.html.haml
honey-cms-0.3.10 app/views/layouts/cms.html.haml
honey-cms-0.3.9 app/views/layouts/cms.html.haml