mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
23 lines
735 B
Twig
23 lines
735 B
Twig
{% if version is null and logfile.versionExists('') %}
|
|
{% set version = '' %}
|
|
{% endif %}
|
|
|
|
<h4>
|
|
{{ logfile.getTask().getName() }} (task id {{ logfile.getTask.getId() }})
|
|
{% if version is not null %}
|
|
version {{ version ? version : "(now)" }}
|
|
{% endif %}
|
|
</h4>
|
|
|
|
{% for v in logfile.getVersions() | sort | reverse %}
|
|
<a href="{{ path('admin_tasks_task_log', {'task':logfile.getTask.getId(), 'version' : v }) }}">{{ v ? v : "(now)" }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
{% if version is not null %}
|
|
<pre>{{ logfile.getContent(version) }}</pre>
|
|
<a href="{{ path('admin_tasks_task_log', {'task':logfile.getTask.getId(), 'version' : version, 'clr':'1' }) }} ">
|
|
{{ 'Clear' | trans }}
|
|
</a>
|
|
{% endif %}
|