The "Sign in" or "My account" links and the main navigation are different elements, and they're in different places on medium and large screens. Now we're also separating them on small screens. Since the `.vertical` class in the menu added quite a few styles and it was difficult to overwrite them, we're simply removing this class from this element. This way we're also removing the huge space between the menu button and the first element of the navigation.
44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
<% if show_admin_menu?(current_user) %>
|
|
<li class="has-submenu">
|
|
<%= link_to t("layouts.header.administration_menu"), "#", rel: "nofollow", class: "hide-for-small-only" %>
|
|
<ul class="submenu menu" data-submenu>
|
|
<% if current_user.administrator? %>
|
|
<li>
|
|
<%= link_to t("layouts.header.administration"), admin_root_path %>
|
|
</li>
|
|
<% end %>
|
|
|
|
<% if current_user.administrator? || current_user.moderator? %>
|
|
<li>
|
|
<%= link_to t("layouts.header.moderation"), moderation_root_path %>
|
|
</li>
|
|
<% end %>
|
|
|
|
<% if feature?(:budgets) &&
|
|
(current_user.administrator? || current_user.valuator?) %>
|
|
<li>
|
|
<%= link_to t("layouts.header.valuation"), valuation_root_path %>
|
|
</li>
|
|
<% end %>
|
|
|
|
<% if current_user.administrator? || current_user.manager? %>
|
|
<li>
|
|
<%= link_to t("layouts.header.management"), management_sign_in_path %>
|
|
</li>
|
|
<% end %>
|
|
|
|
<% if current_user.poll_officer? && Poll.current.any? %>
|
|
<li>
|
|
<%= link_to t("layouts.header.officing"), officing_root_path %>
|
|
</li>
|
|
<% end %>
|
|
|
|
<% if feature?(:sdg) && (current_user.administrator? || current_user.sdg_manager?) %>
|
|
<li>
|
|
<%= link_to t("sdg_management.header.title"), sdg_management_root_path %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
</li>
|
|
<% end %>
|