Sha256: 26ee8b0bd76ab82b5d8da3b9711665c0131f7c6581013366bed1e3af8b4109bd

Contents?: true

Size: 1.19 KB

Versions: 12

Compression:

Stored size: 1.19 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, data: {icon: 'B'} do
          = 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, data: {icon: 'N'} do
          = 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"), data: {icon: plugin.config.spina_icon} do
              = 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"

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spina-0.6.24 app/views/layouts/spina/admin/website.html.haml
spina-0.6.23 app/views/layouts/spina/admin/website.html.haml
spina-0.6.22 app/views/layouts/spina/admin/website.html.haml
spina-0.6.21 app/views/layouts/spina/admin/website.html.haml
spina-0.6.20 app/views/layouts/spina/admin/website.html.haml
spina-0.6.19 app/views/layouts/spina/admin/website.html.haml
spina-0.6.18 app/views/layouts/spina/admin/website.html.haml
spina-0.6.17 app/views/layouts/spina/admin/website.html.haml
spina-0.6.16 app/views/layouts/spina/admin/website.html.haml
spina-0.6.15 app/views/layouts/spina/admin/website.html.haml
spina-0.6.14 app/views/layouts/spina/admin/website.html.haml
spina-0.6.13 app/views/layouts/spina/admin/website.html.haml