Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions View/Backup.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@
-
{% endif %}
</td>
<td class="text-end">{{ bytes(backup.sql_size) }}</td>
{% if bytes(backup.sql_size) != "0,00 bytes" and bytes(backup.sql_size) != "0.00 bytes"%}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, mejor haz

{% if backup.sql_file %}

Como tienes más arriba. Así compruebas si tienes el nombre del archivo. Si no hay, no tiene tamaño.

Lo mismo con el otro.

<td class="text-end">{{ bytes(backup.sql_size) }}</td>
{% else %}
<td class="text-end">-</td>
{% endif %}
<td>
{% if backup.zip_file %}
<a href="#"
Expand All @@ -114,9 +118,13 @@
-
{% endif %}
</td>
<td class="text-end">{{ bytes(backup.zip_size) }}</td>
<td class="text-end">{{ backup.date }}</td>
<td class="text-end">
{% if bytes(backup.zip_size) != "0,00 bytes" and bytes(backup.zip_size) != "0.00 bytes" %}
<td class="text-end">{{ bytes(backup.zip_size) }}</td>
{% else %}
<td class="text-end">-</td>
{% endif %}
<td class="text-end">{{ backup.date }}</td>
<td class="text-end">
{% if backup.sql_file or backup.zip_file %}
<a href="#"
onclick="deleteBackupAction('{{ backup.sql_file }}','{{ backup.zip_file }}')"
Expand Down