mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat: add timezone to datetime display across the board
- the "Flagged Out-of-date on ..." link in the package action panel does not contain a timezone specifier. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
e777b7052e
commit
1545eab81d
15 changed files with 47 additions and 41 deletions
|
@ -21,15 +21,13 @@
|
|||
</strong>
|
||||
</div>
|
||||
|
||||
{% set submitted = voteinfo.Submitted | dt | as_timezone(timezone) %}
|
||||
{% set submitter = voteinfo.Submitter.Username %}
|
||||
{% set submitter_uri = "/account/%s" | format(submitter) %}
|
||||
{% set submitter = '<a href="%s">%s</a>' | format(submitter_uri, submitter) %}
|
||||
{% set end = voteinfo.End | dt | as_timezone(timezone) %}
|
||||
<div class="field submitted">
|
||||
{{
|
||||
"Submitted: %s by %s" | tr
|
||||
| format(submitted.strftime("%Y-%m-%d %H:%M"), submitter)
|
||||
| format(datetime_display(voteinfo.Submitted), submitter)
|
||||
| safe
|
||||
}}
|
||||
</div>
|
||||
|
@ -37,7 +35,7 @@
|
|||
<div class="field end">
|
||||
{{ "End" | tr }}:
|
||||
<strong>
|
||||
{{ end.strftime("%Y-%m-%d %H:%M") }}
|
||||
{{ datetime_display(voteinfo.End) }}
|
||||
</strong>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue