Sha256: a0c4231962dfde6d0490d68ec744df2f46d7e0e62f7e8c208c78c79c55d03b59

Contents?: true

Size: 879 Bytes

Versions: 2

Compression:

Stored size: 879 Bytes

Contents

<ul class="nav navbar-nav navbar-right root_links">
  <% actions(:root).select(&:show_in_navigation).each do |action| %>
    <li class="<%= action.action_name %>_root_link">
      <%= link_to wording_for(:menu, action), { action: action.action_name, controller: 'rails_admin/main' }, class: action.pjax? ? "pjax" : "" %>
    </li>
  <% end %>
  <% if main_app_root_path = (main_app.root_path rescue false) %>
    <li>
      <%= link_to t('admin.home.name'), main_app_root_path %>
    </li>
  <% end %>
  <% if _current_user %>
    <% if user_link = edit_user_link %>
      <li class="edit_user_root_link">
        <%= user_link %>
      </li>
    <% end %>
    <% if logout_path.present? %>
      <li>
        <%= link_to content_tag('span', t('admin.misc.log_out'), class: 'label label-danger'), logout_path, method: logout_method %>
      </li>
    <% end %>
  <% end %>
</ul>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rails_admin-3.0.0.beta2 app/views/layouts/rails_admin/_secondary_navigation.html.erb
rails_admin-3.0.0.beta app/views/layouts/rails_admin/_secondary_navigation.html.erb