Skip to content

Commit

Permalink
Merge pull request #350 from GSA-TTS/fix/innovation-fellow-listing
Browse files Browse the repository at this point in the history
Adjust innovation listing and add no listings message
  • Loading branch information
ximekilgsa authored Sep 23, 2024
2 parents 5d69de6 + 5174594 commit ff881b6
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 27 deletions.
2 changes: 1 addition & 1 deletion _data/assetPaths.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"uswds.js": "/assets/js/uswds-init.js",
"styles.css": "/assets/styles/styles-6UNDCLW2.css",
"styles.map": "/assets/styles/styles-6UNDCLW2.css.map"
}
}
25 changes: 6 additions & 19 deletions _data/global_info_sessions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,29 @@
# How to use this file
#
# NOTE: This file is ONLY for GENERAL info sessions. Info sessions for a
# specific job are located in that job's page.
# specific job are located in that job's MD template.
#
# For each general info session, you will need to create an entry that looks
# like this:
# For each general info session, copy and past the full preceding one and replace with
# your own.
#
# - link: https://www.eventbrite.com/...
# date: 2023-02-02
# time: 12:30-1:30pm ET (9:30-10:30am PT)
#
# But without the hash at the front. (The dash on the first line should be the
# very first thing on the first line. The other two lines should be indented
# two spaces. This is so the computer will understand how the lines relate to
# each other. You're basically programming!!)
# The date must be in YYYY-MM-DD format.
#
# The date must be in YYYY-MM-DD format. This is used by the site builder to
# figure out what order to show the sessions in, and will be turned into a
# human-friendly block of text that includes the day of the week and month name.
#
# The time does not have to be in a particular format to work. However, the
# format that Team Talent has adopted is
#
# start-end ET (start-end PT)
#
# Info sessions in the past will not be displayed. It is still a good idea to
# delete them from this file, though, to keep it tidy, but there's no rush.
################################################################################

# delete them from this file, though, to keep it tidy, but there's no rush.
################################################################################
---
- link: https://gsa.zoomgov.com/meeting/register/vJIsc-qhqj0jHl6nkKV8IA7TyuNDlxlHeV8
date: Thursday, October 17th, 2024
date: 2024-10-17
time-et: 12:30-1:30pm ET
time-pt: 9:30-10:30am PT

- link: https://gsa.zoomgov.com/webinar/register/WN_xKx0akUhTLClTGto7jmXeQ#
date: Thursday, November 21, 2024
date: 2024-11-21
time-et: 12:30-1:30pm ET
time-pt: 9:30-10:30am PT
22 changes: 17 additions & 5 deletions _includes/layouts/jointts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ <h2 id="open-positions">Open positions</h2>
<p>We are hiring and will be sharing upcoming jobs and open positions as they are available.</p>

<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>
Expand Down Expand Up @@ -78,13 +80,19 @@ <h2 id="open-positions">Open positions</h2>
{% 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 %}

<h2>Upcoming positions</h2>
<ul>
{% assign upcoming_job_count = 0 %}

{% for pg in collections.jobs %}
{% capture state %}{% getStateFromDates pg.data.opens pg.data.closes %}{% endcapture %}

{% assign show_job = false %}

{% if pg.data.title != "" %}
{% if state == "upcoming" %}
{% assign show_job = true %}
Expand All @@ -94,6 +102,7 @@ <h2>Upcoming positions</h2>
{% endif %}

{% if show_job %}
{% assign upcoming_job_count = upcoming_job_count | plus: 1 %}
{% unless pg.data.path contains 'template' %}
{% unless pg.data.path contains 'performance-profiles' %}
<li>
Expand Down Expand Up @@ -136,7 +145,11 @@ <h2>Upcoming positions</h2>
{% endunless %}
{% endif %}
{% endfor %}
</ul>
</ul>

{% if upcoming_job_count == 0 %}
<p>No upcoming positions at this time. Sign up for <a href="/join/newsletter/">job alerts!</a></p>
{% endif %}

<h2>Other GSA Opportunities</h2>
<p>Check out <a href="https://www.gsa.gov/about-us/find-apply-for-and-land-a-job-at-gsa">careers at GSA</a> and more <a href="https://www.usajobs.gov/Search/Results?j=2210&d=GS&p=1">Information Technology opportunities.</a></p>
Expand All @@ -159,12 +172,11 @@ <h3 class="usa-summary-box__heading">Find out more</h3>
<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>
{% for session in sorted_info_sessions %}
{% assign date_string_fixed = session.date | remove: 'th' | remove: 'st' | remove: 'nd' | remove: 'rd' %}
{% assign session_date = date_string_fixed | date: "%s" %}
{% assign session_date = session.date | date: "%s" %}
{% assign now = 'now' | date: "%s" %}
{% if session_date > now %}
<li class="info-session">
<a target="_blank" href="{{ session.link }}" rel="noopener">{{ session.date }}</a>
<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>
Expand Down
4 changes: 2 additions & 2 deletions pages/jointts/positions/Presidential-Innovation-Fellows.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ external_url: https://presidentialinnovationfellows.gov/apply/

# Put the opening and closing dates of your posting here, if you have them
# These dates MUST be formatted as YYYY-MM-DD, where month and day are 2-digits
opens:
closes:
opens: 2024-09-13
closes: 2024-09-30

# To show the status alert for this job, leave this set to true. To hide it, change to false
# To show the alert keyword association message, add the keywords separated by a semi-colon
Expand Down

0 comments on commit ff881b6

Please sign in to comment.