HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/posscale/subdomains/xibo/views/library-form-tidy.twig
{#
/*
 * Spring Signage Ltd - http://www.springsignage.com
 * Copyright (C) 2015 Spring Signage Ltd
 * (${FILE_NAME})
 */

Good in theory, but it is giving back 0 and 0 at the moment

#}

{% extends "form-base.twig" %}
{% import "forms.twig" as forms %}

{% block formTitle %}
    {% trans "Tidy Library" %}
{% endblock %}

{% block formButtons %}
    {% trans "Help" %}, XiboHelpRender("{{ help }}")
    {% trans "Cancel" %}, XiboDialogClose()
    {% trans "Save" %}, $("#libraryTidyForm").submit()
{% endblock %}

{% block formHtml %}
    <div class="row">
        <div class="col-md-12">
            <form id="libraryTidyForm" class="XiboForm form-horizontal" method="delete" action="{{ urlFor("library.tidy") }}">
                {% set message %}{% trans "Tidying your Library will delete any media that is not currently in use." %}{% endset %}
                {{ forms.message(message) }}              

                {% if countExcludingGeneric > 0 %}
                    {% set message %}{% trans %}There is {{sumExcludingGeneric}} of data stored in {{countExcludingGeneric}} files . Are you sure you want to proceed?{% endtrans %}{% endset %}
                    {{ forms.message(message) }}
                {% else %}
                    {% set message %}{% trans %}You do not have any library files that are not in use.{% endtrans %}{% endset %}
                    {{ forms.message(message) }}
                {% endif %}

                {% if countGeneric > 0 %}
                    {% set title %}{% trans %}Delete Generic Files?{% endtrans %}{% endset %}
                    {% set helpText %}{% trans %}There is {{sumGeneric}} of data stored in {{countGeneric}} generic files. To delete these check here{% endtrans %}{% endset %}
                    {{ forms.checkbox("tidyGenericFiles", title, 0, helpText) }}
                {% endif %}
            </form>
        </div>
    </div>
{% endblock %}