Sha256: bd52e8d3d74c91f703194e2d825baf00a41d0a7641e03a097e8f3f690303759a

Contents?: true

Size: 1.21 KB

Versions: 12

Compression:

Stored size: 1.21 KB

Contents

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

    %ul
      %li{class: ('active' if params[:action] == 'edit' && params[:controller] == 'spina/admin/accounts')}
        = link_to spina.edit_admin_account_path, data: {icon: 'J'} do
          = t('spina.preferences.account')
          %small= t('spina.preferences.account_description')

      - if can? :manage, Spina::User
        %li{class: ('active' if %w[users].include? controller_name)}
          = link_to spina.admin_users_path, data: {icon: 'K'} do
            = t('spina.preferences.users')
            %small= t('spina.preferences.users_description')

      %li{class: ('active' if params[:action] == 'social')}
        = link_to spina.social_admin_account_path, data: {icon: 'D'} do
          = t('spina.preferences.social_media')
          %small= t('spina.preferences.social_media_description')

      %li{class: ('active' if params[:action] == 'analytics')}
        = link_to spina.analytics_admin_account_path, data: {icon: 'E'} do
          = t('spina.preferences.analytics')
          %small= t('spina.preferences.analytics_description')

- content_for :content do
  = 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/settings.html.haml
spina-0.6.23 app/views/layouts/spina/admin/settings.html.haml
spina-0.6.22 app/views/layouts/spina/admin/settings.html.haml
spina-0.6.21 app/views/layouts/spina/admin/settings.html.haml
spina-0.6.20 app/views/layouts/spina/admin/settings.html.haml
spina-0.6.19 app/views/layouts/spina/admin/settings.html.haml
spina-0.6.18 app/views/layouts/spina/admin/settings.html.haml
spina-0.6.17 app/views/layouts/spina/admin/settings.html.haml
spina-0.6.16 app/views/layouts/spina/admin/settings.html.haml
spina-0.6.15 app/views/layouts/spina/admin/settings.html.haml
spina-0.6.14 app/views/layouts/spina/admin/settings.html.haml
spina-0.6.13 app/views/layouts/spina/admin/settings.html.haml