Clean code

This commit is contained in:
Nyymix 2025-04-05 18:02:51 +03:00
parent f3ec438305
commit 3f03eb95bc
6 changed files with 82 additions and 167 deletions

View file

@ -2,7 +2,7 @@
{% load exif_filters %}
<!-- Title -->
{% block title %} Gallery : Photo : {{ photo.slug }} {% endblock %}
{% block title %} Gallery : {{ photo.album.name }} : {{ photo.slug }} {% endblock %}
<!-- Content -->
@ -71,7 +71,7 @@
<div>{{ photo.likes }}</div>
</div>
<div class="uk-grid-small" uk-grid>
<div class="uk-width-expand" uk-leader>Download</div>
<div class="uk-width-expand" uk-leader>Download photo</div>
<div><a href="{{ photo.photo.url }}">{{ photo.width }}x{{ photo.height }}</a></div>
</div>
</div>
@ -104,7 +104,7 @@
<div>{{ photo.exif.FocalLength|exif_focallength}}</div>
</div>
<div class="uk-grid-small" uk-grid>
<div class="uk-width-expand" uk-leader>Focal Length</div>
<div class="uk-width-expand" uk-leader>Focal Length in 35mm</div>
<div>{{ photo.exif.FocalLengthIn35mmFilm|exif_focallength }}</div>
</div>
</div>