mirror of
https://github.com/ae-utbm/sith.git
synced 2025-02-27 09:57:09 +00:00
Harmonize news date display
This commit is contained in:
parent
4890fcf0e1
commit
07028c8dd8
@ -35,10 +35,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<h4>{{ news.title }}</h4>
|
<h4>{{ news.title }}</h4>
|
||||||
<p class="date">
|
<p class="date">
|
||||||
<span>{{ date.start_date|localtime|date(DATETIME_FORMAT) }}
|
<time datetime="{{ date.start_date.isoformat(timespec="seconds") }}">{{ date.start_date|localtime|date(DATETIME_FORMAT) }}
|
||||||
{{ date.start_date|localtime|time(DATETIME_FORMAT) }}</span> -
|
{{ date.start_date|localtime|time(DATETIME_FORMAT) }}</time> -
|
||||||
<span>{{ date.end_date|localtime|date(DATETIME_FORMAT) }}
|
<time datetime="{{ date.end_date.isoformat(timespec="seconds") }}">{{ date.end_date|localtime|date(DATETIME_FORMAT) }}
|
||||||
{{ date.end_date|localtime|time(DATETIME_FORMAT) }}</span>
|
{{ date.end_date|localtime|time(DATETIME_FORMAT) }}</time>
|
||||||
</p>
|
</p>
|
||||||
<div class="news_content">
|
<div class="news_content">
|
||||||
<div><em>{{ news.summary|markdown }}</em></div>
|
<div><em>{{ news.summary|markdown }}</em></div>
|
||||||
|
@ -86,9 +86,11 @@
|
|||||||
<a href="{{ date.news.club.get_absolute_url() }}">{{ date.news.club }}</a>
|
<a href="{{ date.news.club.get_absolute_url() }}">{{ date.news.club }}</a>
|
||||||
<div class="news_date">
|
<div class="news_date">
|
||||||
<time datetime="{{ date.start_date.isoformat(timespec="seconds") }}">
|
<time datetime="{{ date.start_date.isoformat(timespec="seconds") }}">
|
||||||
|
{{ date.start_date|localtime|date(DATETIME_FORMAT) }}
|
||||||
{{ date.start_date|localtime|time(DATETIME_FORMAT) }}
|
{{ date.start_date|localtime|time(DATETIME_FORMAT) }}
|
||||||
</time> -
|
</time> -
|
||||||
<time datetime="{{ date.end_date.isoformat(timespec="seconds") }}">
|
<time datetime="{{ date.end_date.isoformat(timespec="seconds") }}">
|
||||||
|
{{ date.end_date|localtime|date(DATETIME_FORMAT) }}
|
||||||
{{ date.end_date|localtime|time(DATETIME_FORMAT) }}
|
{{ date.end_date|localtime|time(DATETIME_FORMAT) }}
|
||||||
</time>
|
</time>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user