From 82459051ab45ed2fa64ed8ea1eb4541d3cf51164 Mon Sep 17 00:00:00 2001 From: Shinsina Date: Tue, 2 Jul 2024 09:34:04 -0500 Subject: [PATCH] Use dropdown on MPPWCC, MPPWSA, Top Women --- .../static-pages/mppwcc-yearly.marko | 26 ++++++++------- .../static-pages/mppwsa-yearly.marko | 32 ++++++++++--------- .../awards-honors/top-women/index.marko | 30 ++++++++--------- 3 files changed, 45 insertions(+), 43 deletions(-) diff --git a/sites/diverseeducation.com/server/templates/static-pages/mppwcc-yearly.marko b/sites/diverseeducation.com/server/templates/static-pages/mppwcc-yearly.marko index e0085afb..246bc36c 100644 --- a/sites/diverseeducation.com/server/templates/static-pages/mppwcc-yearly.marko +++ b/sites/diverseeducation.com/server/templates/static-pages/mppwcc-yearly.marko @@ -50,18 +50,20 @@ $ const mpprecommendationsSrc = currentYearData ? currentYearData.mpprecommendat
-
-

- Other Years -

- - - - ${year} -   - - -
+ + $ const otherYearsItems = Object.keys(config).reverse().map((year) => ({ href: `/awards-honors/mppwcc/${year}`, label: year })); +
diff --git a/sites/diverseeducation.com/server/templates/static-pages/mppwsa-yearly.marko b/sites/diverseeducation.com/server/templates/static-pages/mppwsa-yearly.marko index 3ed67bee..f0c1a8dc 100644 --- a/sites/diverseeducation.com/server/templates/static-pages/mppwsa-yearly.marko +++ b/sites/diverseeducation.com/server/templates/static-pages/mppwsa-yearly.marko @@ -80,21 +80,23 @@ $ const nationalPerspective = currentYearData ? currentYearData.nationalPerspect
-
-

- Other Years -

- - - - ${year} -   - - -
+ + $ const otherYearsItems = Object.keys(config).reverse().map((year) => ({ href: `/awards-honors/mppwcc/${year}`, label: year })); +
- + <@section modifiers=["card-deck"]> $ const tableOneLabels = Object.values(getAsObject(currentYearData, "tableLabels.tableOne")); @@ -132,12 +134,12 @@ $ const nationalPerspective = currentYearData ? currentYearData.nationalPerspect

HONORABLE MENTION

- Institution + Institution ${label} - + diff --git a/sites/diverseeducation.com/server/templates/website-section/awards-honors/top-women/index.marko b/sites/diverseeducation.com/server/templates/website-section/awards-honors/top-women/index.marko index e7557932..77999188 100644 --- a/sites/diverseeducation.com/server/templates/website-section/awards-honors/top-women/index.marko +++ b/sites/diverseeducation.com/server/templates/website-section/awards-honors/top-women/index.marko @@ -54,13 +54,6 @@ $ const queryParams = {
-
-
-

- Other Years -

-
-
$ const year = 2024; //current/active year $ const children = getAsArray(node, "children.edges").map(({ node }) => node).filter(({ name })=> parseInt(name) <= year); - - <@nodes|{ nodes }| nodes=children modifiers=["flush-x"]> -
- - ${node.name}  - -
- -
+ + $ const otherYearsItems = children.map((childNode) => ({ href: `/${childNode.alias}`, label: childNode.name })); +