FEAT : Gestion des miniatures via thumbnails
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -16,7 +16,7 @@
|
||||
<h2>Photos dans l’album</h2>
|
||||
<div th:each="p : ${album.photos}" style="display:inline-block; margin:10px;">
|
||||
<a th:href="@{'/photo/' + ${p.id}}">
|
||||
<img th:src="@{'/photo/' + ${p.id} + '/raw'}" width="120"/>
|
||||
<img th:src="@{'/photo/' + ${p.id} + '/thumb'}" width="120"/>
|
||||
</a>
|
||||
<br/>
|
||||
<a th:if="${canAdmin}" th:href="@{'/album/' + ${album.id} + '/remove/' + ${p.id}}"
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<a th:each="p : ${photosPage.content}"
|
||||
th:href="@{'/photo/' + ${p.id}}"
|
||||
style="display:inline-block; margin:10px;">
|
||||
<img th:src="@{'/photo/' + ${p.id} + '/raw'}"
|
||||
<img th:src="@{'/photo/' + ${p.id} + '/thumb'}"
|
||||
width="150"
|
||||
style="border:1px solid #ccc;"/>
|
||||
</a>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<div>
|
||||
<a th:each="p : ${photosPrivees.content}" th:if="${p != null}"
|
||||
th:href="@{'/photo/' + ${p.id}}">
|
||||
<img th:src="@{'/photo/' + ${p.id} + '/raw'}" width="120"/>
|
||||
<img th:src="@{'/photo/' + ${p.id} + '/thumb'}" width="120"/>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
@@ -28,7 +28,7 @@
|
||||
<div>
|
||||
<a th:each="p : ${photosPubliques.content}" th:if="${p != null}"
|
||||
th:href="@{'/photo/' + ${p.id}}">
|
||||
<img th:src="@{'/photo/' + ${p.id} + '/raw'}" width="120"/>
|
||||
<img th:src="@{'/photo/' + ${p.id} + '/thumb'}" width="120"/>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
@@ -44,7 +44,7 @@
|
||||
<div style="display:flex; gap:20px; flex-wrap:wrap;">
|
||||
<div th:each="p : ${mesPhotosPartagees.content}" th:if="${p != null}">
|
||||
<a th:href="@{'/photo/' + ${p.id}}">
|
||||
<img th:src="@{'/photo/' + ${p.id} + '/raw'}" width="120"
|
||||
<img th:src="@{'/photo/' + ${p.id} + '/thumb'}" width="120"
|
||||
style="display:block; border:1px solid #ccc;"/>
|
||||
</a>
|
||||
<!--compteur de partages -->
|
||||
@@ -78,7 +78,7 @@
|
||||
<a th:each="p : ${photosPartagees.content}"
|
||||
th:if="${p != null}"
|
||||
th:href="@{'/photo/' + ${p.id}}">
|
||||
<img th:src="@{'/photo/' + ${p.id} + '/raw'}" width="120"/>
|
||||
<img th:src="@{'/photo/' + ${p.id} + '/thumb'}" width="120"/>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user