From 791a00c695a9d1d99b2466ea96b2ff7f54ba8f78 Mon Sep 17 00:00:00 2001 From: Preston Baxter Date: Mon, 30 Oct 2023 18:43:42 -0500 Subject: [PATCH] B: break up navigation. --- ui/templates/dashboard_page.templ | 433 +++--------------------------- ui/templates/landing_page.templ | 1 + 2 files changed, 32 insertions(+), 402 deletions(-) diff --git a/ui/templates/dashboard_page.templ b/ui/templates/dashboard_page.templ index 46bab5c..8645771 100644 --- a/ui/templates/dashboard_page.templ +++ b/ui/templates/dashboard_page.templ @@ -1,6 +1,8 @@ package templates import ( + "fmt" + "git.preston-baxter.com/Preston_PLB/capstone/frontend-service/db/models" ) @@ -37,78 +39,8 @@ templ DashboardNav(user *models.User) { class="md:block text-left md:pb-2 text-blueGray-600 mr-0 inline-block whitespace-nowrap text-sm uppercase font-bold p-4 px-0" href="javascript:void(0)" > - Tailwind Starter Kit + { user.Email } -
@@ -146,134 +78,39 @@ templ DashboardNav(user *models.User) {
-
-
- Documentation -
- } +templ DashboardNavItem(icon, name, link string, enabled bool) { +
  • + + + { name } + +
  • +} + //Break this up templ DashboardContentNav(user *models.User) { @@ -460,8 +297,6 @@ templ DashboardContent(user *models.User) { } templ DashboardScript() { - - } diff --git a/ui/templates/landing_page.templ b/ui/templates/landing_page.templ index d9f398c..0d0c6ea 100644 --- a/ui/templates/landing_page.templ +++ b/ui/templates/landing_page.templ @@ -9,6 +9,7 @@ templ Head(msg string) { +