Added model for special galleries.
This commit is contained in:
@@ -117,12 +117,23 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<form method="post" action="{% url 'gallery_view_path' path=path %}">
|
||||
{% csrf_token %}
|
||||
<button class="btn btn-sm btn-plain" type="submit" title="Favorite" aria-label="Fav image" name="favorite">
|
||||
{% if image_meta.favorite %}
|
||||
<i class="fa-solid fa-star"></i>
|
||||
{% else %}
|
||||
<i class="fa-regular fa-star"></i>
|
||||
{% endif %}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="dropdown ms-auto">
|
||||
<button class="btn btn-sm btn-plain" type="button" data-bs-toggle="dropdown" aria-expanded="false" title="Info" aria-label="Image info">
|
||||
<i class="fa-solid fa-circle-info"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-end info-menu p-2">
|
||||
<div style="max-height:220px; overflow:auto;">
|
||||
<div style="max-height:300px; overflow:auto;">
|
||||
<div class="small text-muted">{{ image_meta.filename|truncatechars:40 }}</div>
|
||||
{% if image_meta.width and image_meta.height %}
|
||||
<div>{{ image_meta.width }} x {{ image_meta.height }} px</div>
|
||||
@@ -138,6 +149,14 @@
|
||||
<div class="small text-muted">Modification date</div>
|
||||
<div>{{ image_meta.modified }}</div>
|
||||
{% endif %}
|
||||
{% if image_meta.visits %}
|
||||
<div class="small text-muted">Visits:</div>
|
||||
<div>{{ image_meta.visits }}</div>
|
||||
{% endif %}
|
||||
{% if image_meta.visited %}
|
||||
<div class="small text-muted">Last visit:</div>
|
||||
<div>{{ image_meta.visited }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user