FEAT : Gestion des miniatures via thumbnails
This commit is contained in:
@@ -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