Increase security and reformat
This commit is contained in:
@@ -27,6 +27,7 @@ def settings_hierarchy_nav(request):
|
||||
ai_models_href = reverse("ai_models")
|
||||
ai_traces_href = reverse("ai_execution_log")
|
||||
commands_href = reverse("command_routing")
|
||||
business_plans_href = reverse("business_plan_inbox")
|
||||
tasks_href = reverse("tasks_settings")
|
||||
translation_href = reverse("translation_settings")
|
||||
availability_href = reverse("availability_settings")
|
||||
@@ -55,6 +56,8 @@ def settings_hierarchy_nav(request):
|
||||
modules_routes = {
|
||||
"modules_settings",
|
||||
"command_routing",
|
||||
"business_plan_inbox",
|
||||
"business_plan_editor",
|
||||
"tasks_settings",
|
||||
"translation_settings",
|
||||
"availability_settings",
|
||||
@@ -106,7 +109,12 @@ def settings_hierarchy_nav(request):
|
||||
"title": "Modules",
|
||||
"tabs": [
|
||||
_tab("Commands", commands_href, path == commands_href),
|
||||
_tab("Tasks", tasks_href, path == tasks_href),
|
||||
_tab(
|
||||
"Business Plans",
|
||||
business_plans_href,
|
||||
url_name in {"business_plan_inbox", "business_plan_editor"},
|
||||
),
|
||||
_tab("Task Automation", tasks_href, path == tasks_href),
|
||||
_tab("Translation", translation_href, path == translation_href),
|
||||
_tab("Availability", availability_href, path == availability_href),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user