Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide timestamps and add construction icon #2208

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Hide timestamps and add construction icon
  • Loading branch information
sspj-does-weather committed Jan 10, 2025
commit a1e9605007ee5aeef1cac06f1bc46759e0fab80a
4 changes: 2 additions & 2 deletions web/modules/weather_i18n/translations/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,8 @@ msgstr "From the forecaster"
msgid "weather-story.link.area-forecast-discussion.01"
msgstr "Area Forecast Discussion"

msgid "weather-story.text.created-by.01"
msgstr "<strong class='text-base-dark'>Created: @date</strong> by the <a class='usa-link' href='@wfo_url'>@wfo_name WFO</a>"
msgid "weather-story.text.created-by.02"
msgstr "<strong class='text-base-dark'>Created by the <a class='usa-link' href='@wfo_url'>@wfo_name WFO</a></strong>"

msgid "wind.labels.calm.01"
msgstr "calm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,27 @@
<div class="wx-weather-story-wrapper">
{# Top section with text #}
<div class="margin-bottom-2">
<h3 class="wx-visual-h2 text-normal text-primary-darker margin-top-3 margin-bottom-2">{{ "weather-story.heading.from-forecaster.01" | t }}</h3>
<h3 class="wx-visual-h2 text-normal text-primary-darker margin-top-3 margin-bottom-2">
{{ "weather-story.heading.from-forecaster.01" | t }}
<span class="display-flex flex-align-center bg-gold-10v text-black text-uppercase padding-y-05 padding-left-1 padding-right-105 font-sans-xs radius-md margin-left-1 margin-top-105 tablet:margin-top-0">
<svg
class="usa-icon height-205 width-205 margin-right-05 text-top margin-bottom-2px"
aria-hidden="true"
focusable="false"
role="img"
>
<use
xlink:href="/{{ directory }}/assets/images/uswds/sprite.svg#construction_worker"
></use>
</svg>
{{ "backend.banner.under-development.01" | t }}
</span>
</h3>
<h4 class="wx-visual-h3 text-primary-dark margin-0 margin-bottom-2">{{ content.title }}</h4>
<p class="margin-0 margin-bottom-2">
{% set normalized_wfo = content.wfo_code | normalize_wfo %}
{% set wfo_url = '/offices/' ~ normalized_wfo %}
{{ "weather-story.text.created-by.01" | t({
"@date": content.updated.formatted,
{{ "weather-story.text.created-by.02" | t({
"@wfo_url": wfo_url,
"@wfo_name": content.wfo_name
})}}
Expand Down
Loading