fix indenting

This commit is contained in:
Kenneth SOARES 2025-02-17 15:13:38 +01:00 committed by Sli
parent 8cb53ceba2
commit 86c68eeb32
3 changed files with 15 additions and 15 deletions

View File

@ -1,13 +1,13 @@
{% macro download_button() %}
<div x-show="pictures.length > 0" x-cloak>
<button
:disabled="isDownloading"
class="btn btn-blue"
@click="downloadZip()"
>
<i class="fa fa-download"></i>
{% trans %}Download all pictures{% endtrans %}
</button>
<progress x-ref="progress" x-show="isDownloading"></progress>
</div>
<div x-show="pictures.length > 0" x-cloak>
<button
:disabled="isDownloading"
class="btn btn-blue"
@click="downloadZip()"
>
<i class="fa fa-download"></i>
{% trans %}Download all pictures{% endtrans %}
</button>
<progress x-ref="progress" x-show="isDownloading"></progress>
</div>
{% endmacro %}

View File

@ -15,9 +15,9 @@
{% block content %}
<main x-data="user_pictures">
{% if user.id == object.id %}
{{ download_button() }}
{% endif %}
{% if user.id == object.id %}
{{ download_button() }}
{% endif %}
<template x-for="[album, pictures] in Object.entries(albums)" x-cloak>
<section>

View File

@ -65,7 +65,7 @@
{% endif %}
<div x-data="user_pictures">
{{ download_button() }}
{{ download_button() }}
</div>
<div x-data="pictures">