From de1aecd91c36438fc27693a0f4bc9a95e8392d17 Mon Sep 17 00:00:00 2001 From: Ximena Kilroe Date: Wed, 18 Dec 2024 12:47:46 -0500 Subject: [PATCH 1/2] Hide the upcoming section if there are no upcoming jobs --- _data/assetPaths.json | 11 +++++------ _includes/layouts/jointts/home.html | 2 +- js/positions.js | 6 +----- styles/tts-custom-styles.scss | 5 +++++ 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/_data/assetPaths.json b/_data/assetPaths.json index 8402681a..ca84c4ff 100644 --- a/_data/assetPaths.json +++ b/_data/assetPaths.json @@ -3,11 +3,10 @@ "admin.map": "/assets/js/admin-77FHK54G.js.map", "app.js": "/assets/js/app-U5OIPSUD.js", "app.map": "/assets/js/app-U5OIPSUD.js.map", - "positions.js": "/assets/js/positions-VVHKRLDJ.js", - "positions.map": "/assets/js/positions-VVHKRLDJ.js.map", + "positions.js": "/assets/js/positions-JSZISVTK.js", + "positions.map": "/assets/js/positions-JSZISVTK.js.map", "subnav.js": "/assets/js/subnav-3QHQ2EX4.js", "subnav.map": "/assets/js/subnav-3QHQ2EX4.js.map", - "uswds.js": "/assets/js/uswds-init.js", - "styles.css": "/assets/styles/styles-WFQMHBOR.css", - "styles.map": "/assets/styles/styles-WFQMHBOR.css.map" -} + "styles.css": "/assets/styles/styles-VHE4JBMV.css", + "styles.map": "/assets/styles/styles-VHE4JBMV.css.map" +} \ No newline at end of file diff --git a/_includes/layouts/jointts/home.html b/_includes/layouts/jointts/home.html index 0de21c13..9b45b28e 100644 --- a/_includes/layouts/jointts/home.html +++ b/_includes/layouts/jointts/home.html @@ -40,7 +40,7 @@

{{ title }}

{% include "layouts/jointts/jobs.html" %} -

Other GSA Opportunities

+

Other GSA Opportunities

Check out careers at GSA and more Information Technology opportunities.

diff --git a/js/positions.js b/js/positions.js index e39ef598..ab1a6d48 100644 --- a/js/positions.js +++ b/js/positions.js @@ -176,11 +176,7 @@ function addUpcomingJobsToDOM(upcomingJobs) { upcomingJobsSection.appendChild(jobList); } else { - const noJobsText = document.createElement("p"); - noJobsText.innerHTML = - 'No upcoming positions at this time. Sign up for job alerts!'; - - openJobsSection.appendChild(noJobsText); + upcomingJobsSection.remove(); } } diff --git a/styles/tts-custom-styles.scss b/styles/tts-custom-styles.scss index def4fd34..0ec7f1c1 100644 --- a/styles/tts-custom-styles.scss +++ b/styles/tts-custom-styles.scss @@ -336,4 +336,9 @@ h4#specialized-requirements { ul p { font-weight: 400; } +} + +/* Job Sections */ +.open-jobs + #other-opportunities { + margin-top: 1.5em; } \ No newline at end of file From f7f32b67c111696abbb5316dd230192315f54e07 Mon Sep 17 00:00:00 2001 From: Wesley Dean Date: Wed, 18 Dec 2024 17:49:51 +0000 Subject: [PATCH 2/2] [MegaLinter] Apply linters fixes --- _data/assetPaths.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_data/assetPaths.json b/_data/assetPaths.json index ca84c4ff..d2a9a74b 100644 --- a/_data/assetPaths.json +++ b/_data/assetPaths.json @@ -9,4 +9,4 @@ "subnav.map": "/assets/js/subnav-3QHQ2EX4.js.map", "styles.css": "/assets/styles/styles-VHE4JBMV.css", "styles.map": "/assets/styles/styles-VHE4JBMV.css.map" -} \ No newline at end of file +}