Files
grecia/app/components/layout/admin_header_component.html.erb
Javi Martín bbd4d3e62d Render components instead of partials in headers
We were using partials to render components in order to ease the
transition of custom code from earlier versions of Consul. However,
that was back in Consul 1.4, and now these views looked a bit messy
since they sometimes rendered components and sometimes they
rendered partials.
2023-02-16 17:24:34 +01:00

25 lines
625 B
Plaintext

<header class="header">
<div class="top-links">
<%= render Layout::LocaleSwitcherComponent.new %>
<%= 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>