Sha256: d51c94978d96a8a68f23e02493b07558be930b760de05d67c9cc787e5eb96072

Contents?: true

Size: 814 Bytes

Versions: 2

Compression:

Stored size: 814 Bytes

Contents

= link_to 'Qbrick CMS', qbrick.cms_root_path, class: 'brand'

%ul.nav.pull-right.language-navigation
  - if render_language_switch?
    - I18n.available_locales.each do |locale|
      %li{ class: (:active if I18n.locale.to_s == locale.to_s) }
        = link_to_content_locale(locale)

  %li.dropdown
    = link_to '#', class: 'dropdown-toggle', data: { toggle: 'dropdown' } do
      = t('.account')
      %b.caret
    %ul.dropdown-menu
      %li= link_to t('.change_password'), qbrick.edit_cms_account_path
      %li= link_to t('.logout'), qbrick.destroy_admin_session_path, method: :delete

%ul.nav
  %li= link_to t('.settings'), qbrick.cms_settings_path
  %li= link_to Qbrick::Page.model_name.human(count: 2), qbrick.cms_pages_path
  %li= link_to Qbrick::Admin.model_name.human(count: 2), qbrick.cms_admins_path

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qbrick-2.7.1 app/views/qbrick/cms/backend/_main_navigation.html.haml
qbrick-2.7 app/views/qbrick/cms/backend/_main_navigation.html.haml