Files
nairobi/app/components/layout/admin_header_component.html.erb
Javi Martín 2ac338f51a Remove redundant admin-top-bar element
We weren't using the `admin-top-bar` class since commit e6c1cf774, and
we can always use the `.admin .top-bar` selector if we need to. And the
`row expanded` classes basically give an element a width of 100%, which
is already the default width for block elements.
2023-02-16 17:24:34 +01:00

25 lines
614 B
Plaintext

<header class="header">
<div class="top-links">
<%= render "shared/locale_switcher" %>
<%= link_to root_path do %>
<%= t("admin.dashboard.index.back", org: setting["org_name"]) %>
<% end %>
</div>
<div class="top-bar">
<h1>
<%= link_to namespace_path do %>
<%= setting["org_name"] %>
<br><small><%= namespaced_header_title %></small>
<% end %>
</h1>
<% if show_account_menu? %>
<%= render Layout::ResponsiveMenuComponent.new do %>
<%= render Layout::AccountMenuComponent.new(user) %>
<% end %>
<% end %>
</div>
</header>