Removed best practices flag

This commit is contained in:
alexjanousekGSA
2025-01-12 17:42:15 -05:00
parent 6441ae8ca7
commit b6353c41e5
15 changed files with 162 additions and 313 deletions

View File

@@ -1,20 +1,13 @@
{% set is_information_section = FEATURE_ABOUT_PAGE_ENABLED and (
request.path.startswith('/about') or
request.path.startswith('/join-notify') or
request.path.startswith('/contact')
) %}
{% set is_about_page = request.path.startswith('/about') %}
{% set is_join_notify_page = request.path.startswith('/join-notify') %}
{% set is_contact_page = request.path.startswith('/contact') %}
{% set is_information_section = is_about_page or is_join_notify_page or is_contact_page %}
{% if current_user.is_authenticated %}
{% set navigation = [
{"href": url_for("main.show_accounts_or_dashboard"), "text": "Current service", "active": header_navigation.is_selected('accounts-or-dashboard')},
{"href": url_for('main.get_started'), "text": "Using Notify", "active": header_navigation.is_selected('using_notify')}
] %}
{% if FEATURE_BEST_PRACTICES_ENABLED %}
{% set navigation = navigation + [{"href": url_for('main.best_practices'), "text": "Guides", "active": header_navigation.is_selected('best_practices')}] %}
{% endif %}
{% set navigation = navigation + [
{"href": url_for('main.get_started'), "text": "Using Notify", "active": header_navigation.is_selected('using_notify')},
{"href": url_for('main.best_practices'), "text": "Guides", "active": header_navigation.is_selected('best_practices')},
{"href": url_for('main.features'), "text": "Features", "active": header_navigation.is_selected('features')},
{"href": url_for('main.support'), "text": "Contact us", "active": header_navigation.is_selected('support')}
] %}
@@ -41,16 +34,15 @@
{% endif %}
{% else %}
{% set navigation = [] %}
{% if FEATURE_ABOUT_PAGE_ENABLED %}
{% set navigation = navigation + [
{"href": url_for('main.about_notify'), "text": "About Notify", "active": is_information_section},
{"href": url_for('main.join_notify'), "text": "Join Notify", "active": request.path.startswith('/join-notify')},
{"href": url_for('main.contact'), "text": "Contact us", "active": request.path.startswith('/contact')}
{% set navigation = [
{"href": url_for('main.about_notify'), "text": "About Notify", "active": is_about_page},
{"href": url_for('main.join_notify'), "text": "Join Notify", "active": is_join_notify_page},
{"href": url_for('main.contact'), "text": "Contact us", "active": is_contact_page}
] %}
{% endif %}
{% endif %}