Fix gallery bugs

This commit is contained in:
2025-05-13 03:26:08 +02:00
parent 128efbb26e
commit 056766b262
5 changed files with 89 additions and 87 deletions

View File

@@ -4,7 +4,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<link rel="icon" href="{{ url_for('static', filename='bootstrap.min.css') }}">
<title>Un serveur et des ...</title>
<!-- Bootstrap core CSS -->

View File

@@ -7,20 +7,29 @@
<br />
<div id="gallery center" style= "margin-top:10vw;">
<div class="center row">
{% if fichiers %}
{% for image in fichiers %}
<a href="/myfiles/images/{{ image }}" class="glightbox">
<img src="/myfiles/images/thumbnails/{{ image }}" class="img-rounded gallery" alt=""/>
</a>
<div class="column">
<a href="/myfiles/images/{{ image }}" class="glightbox">
<img src="/myfiles/images/thumbnails/{{ image }}" class="img-rounded gallery" alt=""/>
</a>
<div class="control">
<a href="{{ url_for('mygallery.remove_privateImage', filename=image) }}"> <button class="btn btn-danger "><span class="glyphicon glyphicon-trash"></span> </button></a>
<!-- <button class="btn btn-success "><span class="glyphicon glyphicon-globe"></span></button> -->
</div>
</div>
{% endfor %}
{% else %}
<h2> Il n'y a aucunes images dans votre gallerie </h2>
<h2> Il n'y a aucunes images dans votre gallerie </h2>