Sha256: 3bb0c03b788a4b1719cb3f7940662b2fd31ce963723cd3b82cb3b92a436a8662

Contents?: true

Size: 1.02 KB

Versions: 12

Compression:

Stored size: 1.02 KB

Contents

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rails_admin-3.2.1 app/views/layouts/rails_admin/_secondary_navigation.html.erb
rails_admin-3.2.0 app/views/layouts/rails_admin/_secondary_navigation.html.erb
rails_admin-3.2.0.rc app/views/layouts/rails_admin/_secondary_navigation.html.erb
rails_admin-3.2.0.beta app/views/layouts/rails_admin/_secondary_navigation.html.erb
rails_admin-3.1.4 app/views/layouts/rails_admin/_secondary_navigation.html.erb
rails_admin-3.1.3 app/views/layouts/rails_admin/_secondary_navigation.html.erb
rails_admin-3.1.2 app/views/layouts/rails_admin/_secondary_navigation.html.erb
rails_admin-3.1.1 app/views/layouts/rails_admin/_secondary_navigation.html.erb
rails_admin-3.1.0 app/views/layouts/rails_admin/_secondary_navigation.html.erb
rails_admin-3.1.0.rc2 app/views/layouts/rails_admin/_secondary_navigation.html.erb
rails_admin-3.1.0.rc app/views/layouts/rails_admin/_secondary_navigation.html.erb
rails_admin-3.1.0.beta app/views/layouts/rails_admin/_secondary_navigation.html.erb