Update to top navigation active state(s) (#538)

* Updated top navigation active states
* Updated pricing page
This commit is contained in:
Jonathan Bobel
2023-06-09 10:59:01 -04:00
committed by GitHub
parent e0d2d74067
commit d98a8ceada
7 changed files with 206 additions and 181 deletions

View File

@@ -46,11 +46,6 @@
{% if current_user.is_authenticated %}
{% if current_user.platform_admin %}
{% set navigation = [
{
"href": url_for('main.support'),
"text": "Support",
"active": header_navigation.is_selected('support')
},
{
"href": url_for('main.user_profile'),
"text": current_user.name,
@@ -64,13 +59,28 @@
{
"href": url_for('main.sign_out'),
"text": "Sign out"
},
{
"href": url_for('main.support'),
"text": "Contact us",
"active": header_navigation.is_selected('support')
}
] %}
{% else %}
{% set navigation = [
{
"href": url_for('main.get_started'),
"text": "Using notify",
"active": header_navigation.is_selected('using_notify')
},
{
"href": url_for('main.features'),
"text": "Features",
"active": header_navigation.is_selected('features')
},
{
"href": url_for('main.support'),
"text": "Support",
"text": "Contact us",
"active": header_navigation.is_selected('support')
},
{
@@ -87,9 +97,9 @@
{% else %}
{% set navigation = [
{
"href": url_for('main.support'),
"text": "Support",
"active": header_navigation.is_selected('support')
"href": url_for('main.get_started'),
"text": "Using notify",
"active": header_navigation.is_selected('using_notify')
},
{
"href": url_for('main.features'),
@@ -97,9 +107,9 @@
"active": header_navigation.is_selected('features')
},
{
"href": url_for('main.pricing'),
"text": "Pricing",
"active": header_navigation.is_selected('pricing')
"href": url_for('main.support'),
"text": "Contact us",
"active": header_navigation.is_selected('support')
},
{
"href": url_for('main.sign_in'),