Skip to content

Commit

Permalink
Forced date to be handeld with swedish format (#793)
Browse files Browse the repository at this point in the history
* Forced date to be handeld with swedish format

* Fix build issue

---------

Co-authored-by: Robin Dymér <[email protected]>
  • Loading branch information
hato1883 and robindymer authored Dec 6, 2023
1 parent 5fbd11a commit fdadf3b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/involvement/templates/involvement/open_positions.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ <h1>{% trans 'open positions'|title %}</h1>
<h3>{{ pos }}</h3>
<div class="hide-on-med-and-up">
<b style="color: {{ pos.recruitment_end|date_color }};">
{% trans 'deadline'|capfirst %}: {{ pos.recruitment_end }}
{% trans 'deadline'|capfirst %}:
{% language 'sv' %}
{{ pos.recruitment_end|date:"SHORT_DATE_FORMAT" }}
{% endlanguage %}
</b>
</div>
<div class="team">
Expand All @@ -31,7 +34,11 @@ <h3>{{ pos }}</h3>
</div>
<div class="apply hide-on-small-and-down">
<a class="btn" href="{% routablepageurl page 'position' pos.id %}">{% trans 'apply' %}</a><br>
<div class="hide-on-small-only"><b style="color: {{ pos.recruitment_end|date_color }};">{% trans 'deadline'|capfirst %}: {{ pos.recruitment_end|date:"SHORT_DATE_FORMAT" }}</b></div>
<div class="hide-on-small-only"><b style="color: {{ pos.recruitment_end|date_color }};">
{% trans 'deadline'|capfirst %}:
{% language 'sv' %}
{{ pos.recruitment_end|date:"SHORT_DATE_FORMAT" }}
{% endlanguage %}</b></div>
</div>
</div>
<div class="collapsible-body">
Expand Down

0 comments on commit fdadf3b

Please sign in to comment.