refactor(bulma): Fix urls of images

This commit is contained in:
2025-05-18 14:08:58 +02:00
parent 3dc011a22c
commit 17dbe85219
2 changed files with 6 additions and 6 deletions

View File

@@ -40,11 +40,11 @@
<div class="grid card-content"> <div class="grid card-content">
<div class="cell" id="my-gallery"> <div class="cell" id="my-gallery">
{% for photo in adoption_notice.get_photos %} {% for photo in adoption_notice.get_photos %}
<a href="{{ MEDIA_URL }}/{{ photo.image }}" <a href="{{ MEDIA_URL }}{{ photo.image }}"
data-pswp-width="{{ photo.image.width }}" data-pswp-width="{{ photo.image.width }}"
data-pswp-height="{{ photo.image.height }}" data-pswp-height="{{ photo.image.height }}"
target="_blank"> target="_blank">
<img style="height: 12rem" src="{{ MEDIA_URL }}/{{ photo.image }}" <img style="height: 12rem" src="{{ MEDIA_URL }}{{ photo.image }}"
alt="{ photo.alt_text }}"/> alt="{ photo.alt_text }}"/>
</a> </a>
{% endfor %} {% endfor %}

View File

@@ -21,11 +21,11 @@
<div id="my-gallery"> <div id="my-gallery">
{% with photo=animal.get_photos.0 %} {% with photo=animal.get_photos.0 %}
<div class="main-photo"> <div class="main-photo">
<a href="{{ MEDIA_URL }}/{{ photo.image }}" <a href="{{ MEDIA_URL }}{{ photo.image }}"
data-pswp-width="{{ photo.image.width }}" data-pswp-width="{{ photo.image.width }}"
data-pswp-height="{{ photo.image.height }}" data-pswp-height="{{ photo.image.height }}"
target="_blank"> target="_blank">
<img src="{{ MEDIA_URL }}/{{ photo.image }}" <img src="{{ MEDIA_URL }}{{ photo.image }}"
alt="{{ photo.alt_text }}"> alt="{{ photo.alt_text }}">
</a> </a>
</div> </div>
@@ -34,11 +34,11 @@
<div class="thumbnail-row"> <div class="thumbnail-row">
{% for photo in animal.get_photos|slice:"1:4" %} {% for photo in animal.get_photos|slice:"1:4" %}
<div class="thumbnail"> <div class="thumbnail">
<a href="{{ MEDIA_URL }}/{{ photo.image }}" <a href="{{ MEDIA_URL }}{{ photo.image }}"
data-pswp-width="{{ photo.image.width }}" data-pswp-width="{{ photo.image.width }}"
data-pswp-height="{{ photo.image.height }}" data-pswp-height="{{ photo.image.height }}"
target="_blank"> target="_blank">
<img src="{{ MEDIA_URL }}/{{ photo.image }}" <img src="{{ MEDIA_URL }}{{ photo.image }}"
alt="{{ photo.alt_text }}"> alt="{{ photo.alt_text }}">
</a> </a>
</div> </div>