-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #387 from GSA-TTS/fix/job-template-refinements
Fix/job template refinements
- Loading branch information
Showing
12 changed files
with
248 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<div class="desktop:grid-col-4 margin-top-4 desktop:margin-top-0"> | ||
<div class="usa-summary-box"> | ||
<div class="usa-summary-box__body"> | ||
<h3 class="usa-summary-box__heading">Find out more</h3> | ||
<div class="usa-summary-box__text"> | ||
<p>Join us at one of our monthly online information sessions. Come learn more about working at TTS, available positions, and our application process. Register for a session below.</p> | ||
<ul class="info-sessions-list"> | ||
{% for session in sorted_info_sessions %} | ||
<!-- Format the date for comparison --> | ||
{% assign session_date = session.date | date: "%Y-%m-%d" %} | ||
|
||
<!-- Extract ET time range from session.time (e.g., "1:00-2:00pm ET") --> | ||
{% assign time_et = session.time-et | split: " ET" %} | ||
|
||
<!-- Extract start time and end time (e.g., "1:00pm" and "2:00pm") --> | ||
{% assign session_end_time = time_et | split: "-" | last | strip %} | ||
|
||
<!-- Combine the date with the start and end times --> | ||
{% assign session_end_str = session_date | append: " " | append: session_end_time %} | ||
|
||
{% capture sessionEndTimestamp %}{% getDateTimeinSeconds session_end_str %}{% endcapture %} | ||
|
||
{% assign now = 'now' | date: "%s" %} | ||
|
||
{% if sessionEndTimestamp > now %} | ||
<li class="info-session" data-session-end-timestamp="{{ sessionEndTimestamp }}"> | ||
<a target="_blank" href="{{ session.link }}" rel="noopener">{{ session.date | date: "%A, %B %d, %Y" }}</a> | ||
<p>{{ session.time-et }}</p> | ||
<p>({{ session.time-pt }})</p> | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<!-- Info Sessions --> | ||
{% assign now = 'now' | date: "%s" %} | ||
{% assign future_sessions = false %} | ||
|
||
{% for session in pg.data.info_sessions %} | ||
<!-- Format the date for comparison --> | ||
{% assign session_date = session.date | date: "%Y-%m-%d" %} | ||
|
||
<!-- Extract ET time range from session.time (e.g., "1:00-2:00pm ET") --> | ||
{% assign time_et = session.time | split: " ET" | first %} | ||
|
||
<!-- Extract start time and end time (e.g., "1:00pm" and "2:00pm") --> | ||
{% assign session_end_time = time_et | split: "-" | last | strip %} | ||
|
||
<!-- Combine the date with the start and end times --> | ||
{% assign session_end_str = session_date | append: " " | append: session_end_time %} | ||
|
||
{% capture sessionEndTimestamp %}{% getDateTimeinSeconds session_end_str %}{% endcapture %} | ||
|
||
<!-- Check if session is still upcoming or ongoing --> | ||
{% if sessionEndTimestamp > now %} | ||
{% assign future_sessions = true %} | ||
{% break %} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
{% if future_sessions %} | ||
<aside class="usa-alert usa-alert-info"> | ||
<div class="usa-alert-body"> | ||
<p>Upcoming or ongoing info sessions for {{ pg.data.title }}</p> | ||
<ul class="info-sessions-list"> | ||
{% for session in pg.data.info_sessions %} | ||
<!-- Format the date for comparison --> | ||
{% assign session_date = session.date | date: "%Y-%m-%d" %} | ||
|
||
<!-- Extract ET time range from session.time (e.g., "1:00-2:00pm ET") --> | ||
{% assign time_et = session.time | split: " ET" | first %} | ||
|
||
<!-- Extract start time and end time (e.g., "1:00pm" and "2:00pm") --> | ||
{% assign session_end_time = time_et | split: "-" | last | strip %} | ||
|
||
<!-- Combine the date with the start and end times --> | ||
{% assign session_end_str = session_date | append: " " | append: session_end_time %} | ||
|
||
{% capture sessionEndTimestamp %}{% getDateTimeinSeconds session_end_str %}{% endcapture %} | ||
|
||
<!-- Show if session is still ongoing or upcoming --> | ||
{% if sessionEndTimestamp > now %} | ||
<li data-session-end-timestamp="{{ sessionEndTimestamp }}"> | ||
<p><a href="{{ session.link }}" target="_blank">{{ session.headline }}</a> at {{ session.time }}</p> | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</aside> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<ul> | ||
{% assign open_job_count = 0 %} | ||
{% for pg in collections.jobs %} | ||
{% capture state %}{% getStateFromDates pg.data.opens pg.data.closes %}{% endcapture %} | ||
{% if state == "open" %} | ||
{% unless pg.data.path contains 'template' %} | ||
{% unless pg.data.path contains 'performance-profiles' %} | ||
{% assign open_job_count = open_job_count | plus: 1 %} | ||
<li> | ||
{% if pg.data.external_url %} | ||
<a href="{{ pg.data.external_url }}" target="_blank">{{ pg.data.title }}</a> | ||
{% else %} | ||
<a href="{{ pg.url | url }}">{{ pg.data.title }}</a> | ||
{% endif %} | ||
(Open now {% if pg.data.weeks_open %}for {% if pg.data.weeks < 52 %}{{ pg.data.weeks }}{% else %} one year or until all selections have been made{% endif %},{% endif %} through {{ pg.data.closes | date: '%A, %B %e, %Y at 11:59pm' }} ET) | ||
|
||
<!-- Info Sessions --> | ||
{% include "layouts/jointts/job-listing-info-sessions.html" %} | ||
|
||
</li> | ||
{% endunless %} | ||
{% endunless %} | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
|
||
{% if open_job_count == 0 %} | ||
<p>No open positions at this time. Sign up for <a href="/join/newsletter/">job alerts!</a></p> | ||
{% endif %} |
Oops, something went wrong.