mirror of
https://github.com/ae-utbm/sith.git
synced 2026-08-02 19:52:43 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f846ef02cb |
+1
-1
@@ -64,7 +64,7 @@ prod = [
|
|||||||
]
|
]
|
||||||
dev = [
|
dev = [
|
||||||
"django-debug-toolbar>=7.0.0,<8",
|
"django-debug-toolbar>=7.0.0,<8",
|
||||||
"ipython>=9.14.1,<10.0.0",
|
"ipython>=9.15.0,<10.0.0",
|
||||||
"pre-commit>=4.6.0,<5.0.0",
|
"pre-commit>=4.6.0,<5.0.0",
|
||||||
"ruff>=0.16.0,<1.0.0",
|
"ruff>=0.16.0,<1.0.0",
|
||||||
"djhtml>=3.0.11,<4.0.0",
|
"djhtml>=3.0.11,<4.0.0",
|
||||||
|
|||||||
@@ -82,11 +82,7 @@
|
|||||||
|
|
||||||
<div class="container" id="pict">
|
<div class="container" id="pict">
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<div
|
<div class="photo" :aria-busy="currentPicture.imageLoading">
|
||||||
class="photo"
|
|
||||||
:aria-busy="currentPicture.imageLoading"
|
|
||||||
@click="currentPicture = (($event.offsetX > $el.offsetWidth / 2) ? nextPicture : previousPicture) ?? currentPicture"
|
|
||||||
>
|
|
||||||
<img
|
<img
|
||||||
:src="currentPicture.compressedUrl"
|
:src="currentPicture.compressedUrl"
|
||||||
:alt="currentPicture.name"
|
:alt="currentPicture.name"
|
||||||
@@ -99,11 +95,13 @@
|
|||||||
<div class="infos">
|
<div class="infos">
|
||||||
<h5>{% trans %}Infos{% endtrans %}</h5>
|
<h5>{% trans %}Infos{% endtrans %}</h5>
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div>
|
||||||
x-data="{formatter: Intl.DateTimeFormat('{{ LANGUAGE_CODE }}', {dateStyle: 'long'})}"
|
|
||||||
>
|
|
||||||
<span>{% trans %}Date: {% endtrans %}</span>
|
<span>{% trans %}Date: {% endtrans %}</span>
|
||||||
<span x-text="formatter.format(new Date(currentPicture.date))">
|
<span
|
||||||
|
x-text="Intl.DateTimeFormat(
|
||||||
|
'{{ LANGUAGE_CODE }}', {dateStyle: 'long'}
|
||||||
|
).format(Date.parse(currentPicture.date))"
|
||||||
|
>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user