Skip to content

Commit

Permalink
🩹 fix nav ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Feb 5, 2024
1 parent 4af1a0f commit 67d6c05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 8 additions & 5 deletions fragdenstaat_de/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,21 +112,24 @@
<li>
<a href="{{ lawsuits_url|default:'/klagen/' }}">{{ lawsuits_title }}</a>
</li>

{% page_url "about" as about_url %}
{% if about_url %}
{% page_attribute "menu_title" "about" as about_title %}
<li class="nav-sm ms-md-auto">
<li class="nav-sm ms-md-auto order-md-5">
<a href="{{ about_url|default:"/ueber-uns/" }}">{{ about_title }}</a>
</li>
{% endif %}

{% page_url "newsletter" as newsletter_url %}
{% if newsletter_url %}
<li class="nav-sm">
<li class="nav-sm order-md-5">
<a href="{{ newsletter_url }}">{% translate "Newsletter" %}</a>
</li>
{% endif %}

{% page_url "donate" as donate_url %}
<li class="nav-sm">
<li class="nav-sm order-md-5">
<a class="text-danger"
href="{{ donate_url|default:'/spenden/' }}?pk_campaign=site-header&pk_keyword={{ request.path | urlencode }}">
<i class="fa fa-heart" aria-hidden="true"></i>
Expand All @@ -138,7 +141,7 @@
</li>
{% if not request.user.is_authenticated %}
{% url 'account-login' as login_url %}
<li class="nav-sm">
<li class="nav-sm order-md-5">
<a href="{% url 'account-login' %}?next={{ request.path|urlencode }}">
<i class="fa fa-sign-in d-none d-md-inline" aria-hidden="true"></i>
{% blocktrans %}Sign in{% endblocktrans %}
Expand All @@ -147,7 +150,7 @@
<li class="nav-sm d-md-none">
<a href="{% url 'account-signup' %}?next={{ request.path|urlencode }}">{% blocktrans %}Sign Up{% endblocktrans %}</a>
</li>
<li class="nav-sm">
<li class="nav-sm d-md-none">
<hr>
</li>
{% endif %}
Expand Down
1 change: 0 additions & 1 deletion frontend/javascript/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ const searchUrls = [

if (searchUrls.includes(window.location.pathname)) {
navSearch?.remove()
document.querySelector('#menu-user-nav')?.classList.add('ms-md-auto')
}

const input = navSearch?.querySelector('input')
Expand Down

0 comments on commit 67d6c05

Please sign in to comment.