From bbb77783c68dad786db4717cfb958bd999867153 Mon Sep 17 00:00:00 2001 From: Jeff Daley Date: Wed, 11 Oct 2023 20:38:15 -0400 Subject: [PATCH] Simplify template logic --- web/app/components/footer.hbs | 66 +++--- .../{header/index.hbs => header.hbs} | 2 - .../components/{header/index.ts => header.ts} | 7 +- web/app/components/header/nav.hbs | 204 +++++++++--------- web/app/components/header/toolbar.hbs | 66 +++--- web/app/components/results/index.hbs | 101 +++++---- web/app/components/row-results.hbs | 126 ++++++----- web/app/controllers/authenticated.ts | 12 ++ web/app/styles/components/footer.scss | 6 +- web/app/templates/authenticated.hbs | 13 +- web/app/templates/authenticated/dashboard.hbs | 124 +++++------ web/app/templates/authenticated/documents.hbs | 2 +- web/app/templates/authenticated/drafts.hbs | 2 +- web/app/templates/authenticated/my.hbs | 2 +- web/app/templates/authenticated/new.hbs | 7 +- web/app/templates/authenticated/results.hbs | 2 +- web/app/templates/authenticated/settings.hbs | 19 +- 17 files changed, 364 insertions(+), 397 deletions(-) rename web/app/components/{header/index.hbs => header.hbs} (72%) rename web/app/components/{header/index.ts => header.ts} (64%) create mode 100644 web/app/controllers/authenticated.ts diff --git a/web/app/components/footer.hbs b/web/app/components/footer.hbs index 4bd15dd38..935c3c10c 100644 --- a/web/app/components/footer.hbs +++ b/web/app/components/footer.hbs @@ -1,38 +1,34 @@ -{{#unless (eq this.currentRouteName "authenticated.document")}} -