Sha256: 18a0d72f944ad30dbed0dec0391b8d630de1eac651802321daf08a1da459b162
Contents?: true
Size: 915 Bytes
Versions: 3
Compression:
Stored size: 915 Bytes
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'] %> </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 t('admin.misc.log_out'), logout_path, method: logout_method, class: 'nav-link label label-danger' %> </li> <% end %> <% end %> </ul>
Version data entries
3 entries across 3 versions & 1 rubygems