Sha256: f8baca98cabb8e961fa279ac9037bf46b5ed6a0d824abd66895d1779a71ac57b

Contents?: true

Size: 905 Bytes

Versions: 1

Compression:

Stored size: 905 Bytes

Contents

%li= link_to t('admin.dashboard.name'), dashboard_path
- if main_app_root_path = (main_app.root_path rescue false)
  %li= link_to t('home.name').capitalize, main_app_root_path
- if _current_user
  - if authorized?(:edit, _current_user.class, _current_user) && _current_user.respond_to?(:email)
    %li= link_to _current_user.email, edit_path(_current_user.class.name.underscore.pluralize, _current_user)
  - if defined?(Devise) && (devise_scope = request.env["warden"].config[:default_scope] rescue false) && (logout_path = main_app.send("destroy_#{devise_scope}_session_path") rescue false)
    %li= link_to content_tag('span', t('admin.credentials.log_out'), :class => 'label important'), logout_path, :method => Devise.sign_out_via
  %li= image_tag "#{(request.ssl? ? 'https://secure' : 'http://www')}.gravatar.com/avatar/#{Digest::MD5.hexdigest _current_user.email}?s=30", :style => 'padding-top:5px'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elucid-rails_admin-0.0.1 app/views/layouts/rails_admin/_secondary_navigation.html.haml