faflask / templates /index.html
getad72493's picture
Upload 5 files
009f602 verified
raw
history blame
925 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Gallery</title>
</head>
<body>
<h1>Gallery</h1>
<div class="gallery">
{% for image in images %}
<div class="image">
<img src="{{ url_for('static', filename='images/' + image) }}" alt="{{ image }}" width="200">
</div>
{% endfor %}
</div>
<div class="pagination">
{% if page > 1 %}
<a href="{{ url_for('index', page=page-1) }}">Previous</a>
{% endif %}
<span>Page {{ page }} of {{ total_pages }}</span>
{% if page < total_pages %}
<a href="{{ url_for('index', page=page+1) }}">Next</a>
{% endif %}
</div>
<footer>
<a href="{{ url_for('upload') }}">Upload Images</a>
</footer>
</body>
</html>