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