This way it'll be easier to decide when they should be rendered. In order to be consistent, we're using the `Layout` module for both components; previously, the navigation partial was in the `shared` folder while the footer partial was in the `layout` folder, which IMHO didn't make much sense.
49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
<header>
|
|
<% if display_remote_translation_info?(@remote_translations, I18n.locale) %>
|
|
<%= render "shared/remote_translations_button", remote_translations: @remote_translations %>
|
|
<% end %>
|
|
|
|
<div class="top-links">
|
|
<%= render "shared/locale_switcher" %>
|
|
<div class="hide-for-small-only">
|
|
<%= render "shared/top_links" %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="top-bar">
|
|
<span data-responsive-toggle="responsive-menu" data-hide-for="medium">
|
|
<button type="button" class="menu-button" data-toggle>
|
|
<span class="menu-icon"></span>
|
|
<%= t("application.menu") %>
|
|
</button>
|
|
</span>
|
|
|
|
<h1 class="top-bar-title">
|
|
<%= link_to root_path, accesskey: "0" do %>
|
|
<%= image_tag(image_path_for("logo_header.png"), alt: setting["org_name"]) %>
|
|
<% end %>
|
|
</h1>
|
|
|
|
<div id="responsive-menu">
|
|
<div class="top-bar-right">
|
|
<%= render Layout::AccountMenuComponent.new(current_user) %>
|
|
|
|
<div class="show-for-small-only">
|
|
<div class="subnavigation subnavigation-with-top-links">
|
|
<%= render Layout::SubnavigationComponent.new %>
|
|
<%= render "shared/top_links" %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="navigation_bar" class="subnavigation">
|
|
<div class="hide-for-small-only">
|
|
<%= render Layout::SubnavigationComponent.new %>
|
|
</div>
|
|
|
|
<%= yield :header_addon %>
|
|
</div>
|
|
</header>
|