remove nav before login

This commit is contained in:
Beverly Nguyen
2025-06-02 13:10:00 -07:00
parent 8722ae8dd9
commit 65d13701c7
2 changed files with 30 additions and 38 deletions
+1 -11
View File
@@ -1,7 +1,3 @@
{# {% set is_about_page = request.path.startswith('/about') %}
{% set is_contact_page = request.path.startswith('/contact') %}
{% set is_information_section = is_about_page or is_contact_page %}
{% if current_user.is_authenticated %} {% if current_user.is_authenticated %}
{% set navigation = [ {% set navigation = [
{"href": url_for("main.show_accounts_or_dashboard"), "text": "Current service", "active": request.path.startswith('/accounts')}, {"href": url_for("main.show_accounts_or_dashboard"), "text": "Current service", "active": request.path.startswith('/accounts')},
@@ -30,13 +26,7 @@
{% set secondaryNavigation = [{"href": url_for('main.sign_out'), "text": "Sign out"}] %} {% set secondaryNavigation = [{"href": url_for('main.sign_out'), "text": "Sign out"}] %}
{% endif %} {% endif %}
{% else %} {% endif %}
{% set navigation = [
{"href": url_for('main.about_notify'), "text": "About Notify", "active": is_about_page},
{"href": url_for('main.contact'), "text": "Contact us", "active": is_contact_page}
] %}
{% endif %} #}
<header class="usa-header usa-header--extended"> <header class="usa-header usa-header--extended">
<div class="usa-nav-container"> <div class="usa-nav-container">
<div class="usa-navbar"> <div class="usa-navbar">
+2
View File
@@ -25,9 +25,11 @@
We signed you out because you have not used Notify for a while. We signed you out because you have not used Notify for a while.
</p> </p>
{% endif %} {% endif %}
<a class="usa-link usa-button" href="{{ initial_signin_url }}">Sign in with Login.gov</a>
{% else %} {% else %}
<h1 class="font-body-2xl margin-bottom-3">Sign in</h1> <h1 class="font-body-2xl margin-bottom-3">Sign in</h1>
<p>Access your Notify.gov account by signing in with Login.gov:</p> <p>Access your Notify.gov account by signing in with Login.gov:</p>
<a class="usa-link usa-button" href="{{ initial_signin_url }}">Sign in with Login.gov</a>
{% endif %} {% endif %}
</div> </div>
</div> </div>