Skip to content

Commit

Permalink
fix: Display both elements at different places when logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
AyakorK committed Oct 16, 2023
1 parent 8c6a442 commit 88877a2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/views/layouts/decidim/_wrapper.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ end
</div>

<% if current_user %>
<div class="topbar__dropmenu language-choose g-language-choose show-for-medium" data-set="language-holder">
<div class="js-append" id="google_translate_element"></div>
</div>
<%= render partial: "layouts/decidim/social_media_links" %>
<%= render partial: "layouts/decidim/admin_links" %>
<nav class="topbar__dropmenu topbar__user__logged" aria-label="<%= t("layouts.decidim.header.user_menu") %>">
Expand All @@ -103,12 +106,13 @@ end
<ul class="menu is-dropdown-submenu js-append usermenu-off-canvas">
<%= render partial: "layouts/decidim/user_menu" %>
</ul>
<div class="js-append">
<%= render partial: "layouts/decidim/language_chooser" %>
</div>
<div class="js-append hide-for-medium">
<%= render partial: "layouts/decidim/language_chooser" %>
</div>
</div>
</li>
</ul>

</nav>
<% else %>
<div class="topbar__user show-for-medium" data-set="nav-login-holder">
Expand Down

0 comments on commit 88877a2

Please sign in to comment.