Sha256: 5387c5729b0d1282dad65783ad4fd884e5993912c7d2b4baa0aca655c499ec5d

Contents?: true

Size: 1.32 KB

Versions: 7

Compression:

Stored size: 1.32 KB

Contents

- content_for :secondary_navigation do
  %nav#secondary
    %h1= t('spina.website.title')

    %ul
      %li{class: ('active' if params[:controller] == "spina/admin/pages")}
        = link_to spina.admin_pages_path do
          = icon('pages')
          = t('spina.website.pages')
          %small= t('spina.website.pages_description')

      %li{class: ('active' if params[:controller] == "spina/admin/photos" || params[:controller] == "spina/admin/attachments")}
        = link_to spina.admin_photos_path do
          = icon('image')
          = t('spina.website.media_library')
          %small= t('spina.website.media_library_description')

      - Spina.plugins(:website_resource).each do |plugin|
        - if current_theme.config.plugins.include? plugin.name.downcase
          %li{class: ('active' if params[:controller] == "spina/admin/#{plugin.config.controller}")}
            = link_to spina.send("admin_#{plugin.config.controller}_path") do
              = icon(plugin.config.spina_icon)
              = plugin.config.title
              %small= plugin.config.description

- content_for(:content) do
  = content_for?(:website_content) ? yield(:website_content) : yield

= render template: "layouts/spina/admin/application"

- if content_for?(:plugin_stylesheets)
  - content_for(:plugin_stylesheets) do
    = yield(:plugin_stylesheets)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spina-0.8.3 app/views/layouts/spina/admin/website.html.haml
spina-0.8.2 app/views/layouts/spina/admin/website.html.haml
spina-0.8.1 app/views/layouts/spina/admin/website.html.haml
spina-0.8.0 app/views/layouts/spina/admin/website.html.haml
spina-0.7.3 app/views/layouts/spina/admin/website.html.haml
spina-0.7.2 app/views/layouts/spina/admin/website.html.haml
spina-0.7.0 app/views/layouts/spina/admin/website.html.haml