Files
notifications-admin/app/main/views/sub_navigation_dictionaries.py

122 lines
3.5 KiB
Python
Raw Normal View History

2024-11-26 13:50:00 -08:00
from flask import current_app
def features_nav():
return [
{
"name": "Features",
"link": "main.features",
2019-04-16 15:19:28 +01:00
"sub_navigation_items": [
# {
# "name": "Text messages",
# "link": "main.features_sms",
# },
],
2019-04-09 15:16:50 +01:00
},
{
"name": "Roadmap",
"link": "main.roadmap",
},
{
"name": "Security",
"link": "main.security",
},
]
2020-01-24 12:15:27 +00:00
def using_notify_nav():
nav_items = [
{"name": "Get started", "link": "main.get_started"},
{"name": "Guides", "link": "main.best_practices"},
{"name": "Trial mode", "link": "main.trial_mode_new"},
{"name": "Tracking usage", "link": "main.pricing"},
{"name": "Delivery Status", "link": "main.message_status"},
{"name": "Guidance", "link": "main.guidance_index"},
2020-01-24 12:15:27 +00:00
]
if not current_app.config.get("FEATURE_BEST_PRACTICES_ENABLED"):
2024-11-26 14:38:15 -08:00
nav_items = [
item for item in nav_items if item["link"] != "main.best_practices"
]
return nav_items
2024-09-18 22:40:48 -07:00
2024-10-24 16:28:42 -07:00
def best_practices_nav():
2024-09-18 22:40:48 -07:00
return [
{
2024-10-24 16:28:42 -07:00
"name": "Best Practices",
"link": "main.best_practices",
2024-09-18 22:40:48 -07:00
},
{
"name": "Clear goals",
"link": "main.clear_goals",
},
{
2024-10-08 11:34:46 -07:00
"name": "Rules and regulations",
2024-09-18 22:40:48 -07:00
"link": "main.rules_and_regulations",
},
{
"name": "Establish trust",
"link": "main.establish_trust",
"sub_navigation_items": [
{
"name": "Get the word out",
2024-09-23 18:58:22 -07:00
"link": "main.establish_trust#get-the-word-out",
2024-09-18 22:40:48 -07:00
},
{
"name": "As people receive texts",
2024-09-23 18:58:22 -07:00
"link": "main.establish_trust#as-people-receive-texts",
2024-09-18 22:40:48 -07:00
},
2024-09-19 13:04:33 -07:00
],
2024-09-18 22:40:48 -07:00
},
{
"name": "Write for action",
"link": "main.write_for_action",
},
{
"name": "Multiple languages",
"link": "main.multiple_languages",
},
2024-09-25 09:38:21 -07:00
{
2024-10-08 11:34:46 -07:00
"name": "Benchmark performance",
2024-09-25 09:38:21 -07:00
"link": "main.benchmark_performance",
},
2024-09-18 22:40:48 -07:00
]
2024-11-13 14:32:15 -08:00
def about_notify_nav():
return [
{
2024-11-18 11:49:39 -08:00
"name": "About Notify",
2024-11-13 14:32:15 -08:00
"link": "main.about_notify",
2024-11-20 09:43:12 -08:00
"sub_navigation_items": [
2024-11-18 10:41:45 -08:00
{
"name": "Why text messaging",
"link": "main.why_text_messaging",
2024-11-18 11:49:39 -08:00
"sub_sub_navigation_items": [
{
"name": "Reach people using a common method",
"link": "main.why_text_messaging#reach-people-using-a-common-method",
},
{
"name": "Improve customer experience",
"link": "main.why_text_messaging#improve-customer-experience",
},
2024-11-18 11:59:00 -08:00
{
"name": "What texting is best for",
"link": "main.why_text_messaging#what-texting-is-best-for",
},
2024-11-18 11:49:39 -08:00
],
2024-11-18 10:41:45 -08:00
},
2024-11-20 09:43:12 -08:00
{
"name": "Security",
"link": "main.about_security",
},
],
2024-11-13 14:32:15 -08:00
},
2024-11-18 14:00:52 -08:00
{
"name": "Contact",
"link": "main.contact",
},
2024-11-13 14:32:15 -08:00
]