From 9818df10f75cf5ea5050d3212c260ff22bb64b65 Mon Sep 17 00:00:00 2001 From: Brent Schroeter Date: Thu, 27 Nov 2025 07:24:41 +0000 Subject: [PATCH] improve navigation --- .../src/routes/workspaces_single/mod.rs | 2 +- phono-server/templates/list_bases.html | 17 ----- phono-server/templates/portal_table.html | 9 ++- phono-server/templates/workspace_nav.html | 4 +- .../templates/workspaces_multi/list.html | 69 +++++++++++++------ .../templates/workspaces_single/nav.html | 16 +++-- sass/workspace-nav.scss | 6 -- 7 files changed, 70 insertions(+), 53 deletions(-) delete mode 100644 phono-server/templates/list_bases.html diff --git a/phono-server/src/routes/workspaces_single/mod.rs b/phono-server/src/routes/workspaces_single/mod.rs index 8574e5d..d1a2e03 100644 --- a/phono-server/src/routes/workspaces_single/mod.rs +++ b/phono-server/src/routes/workspaces_single/mod.rs @@ -45,7 +45,7 @@ pub(super) fn new_router() -> Router { post(update_name_handler::post), ) .route( - "/{workspace_id}/add-service-credential", + "/{workspace_id}/service-credentials/add-service-credential", post(add_service_credential_handler::post), ) .route("/{workspace_id}/add-table", post(add_table_handler::post)) diff --git a/phono-server/templates/list_bases.html b/phono-server/templates/list_bases.html deleted file mode 100644 index 57ea2ba..0000000 --- a/phono-server/templates/list_bases.html +++ /dev/null @@ -1,17 +0,0 @@ -{% extends "base.html" %} - -{% block main %} - - - {% for base in bases %} - - - - {% endfor %} - -
- - {{ base.name }} - -
-{% endblock %} diff --git a/phono-server/templates/portal_table.html b/phono-server/templates/portal_table.html index c61c67f..8375225 100644 --- a/phono-server/templates/portal_table.html +++ b/phono-server/templates/portal_table.html @@ -1,7 +1,12 @@ {% extends "base.html" %} -{% block main %} +{% block head_extras %} + + +{% endblock %} + +{% block main %}
@@ -24,6 +29,4 @@
- - {% endblock %} diff --git a/phono-server/templates/workspace_nav.html b/phono-server/templates/workspace_nav.html index 5f1758e..9bf3abb 100644 --- a/phono-server/templates/workspace_nav.html +++ b/phono-server/templates/workspace_nav.html @@ -47,8 +47,8 @@ method="post" > -
diff --git a/phono-server/templates/workspaces_multi/list.html b/phono-server/templates/workspaces_multi/list.html index 13e57a3..e5ac3f7 100644 --- a/phono-server/templates/workspaces_multi/list.html +++ b/phono-server/templates/workspaces_multi/list.html @@ -1,23 +1,52 @@ {% extends "base.html" %} -{% block main %} -
-

Workspaces

-
- -
- -
+{% block head_extras %} +{% endblock %} + +{% block main %} +
+
+ {% include "toolbar_user.html" %} +
+
+ +
+
{% endblock %} diff --git a/phono-server/templates/workspaces_single/nav.html b/phono-server/templates/workspaces_single/nav.html index b1e4cdd..a726850 100644 --- a/phono-server/templates/workspaces_single/nav.html +++ b/phono-server/templates/workspaces_single/nav.html @@ -1,8 +1,16 @@ {% extends "base.html" %} {% block main %} -
-

{{ workspace.display_name }}

- {{ workspace_nav | safe }} -
+
+
+ {% include "toolbar_user.html" %} +
+
+
+ {{ workspace_nav | safe }} +
+
+
+
+
{% endblock %} diff --git a/sass/workspace-nav.scss b/sass/workspace-nav.scss index 576467b..6371785 100644 --- a/sass/workspace-nav.scss +++ b/sass/workspace-nav.scss @@ -78,9 +78,3 @@ $background-current-item: #0001; text-decoration: none; } } - -.base-switcher { - @include globals.reset-button; - font-family: globals.$font-family-data; - padding: 1rem; -}