PHP Classes
elePHPant
Icontem

File: src/Cabin/Bridge/View/cargo/skyport_log.twig

Recommend this page to a friend!
  Classes of Scott Arciszewski  >  CMS Airship  >  src/Cabin/Bridge/View/cargo/skyport_log.twig  >  Download  
File: src/Cabin/Bridge/View/cargo/skyport_log.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change:
Date: 1 year ago
Size: 1,811 bytes
 

Contents

Class file image Download
<h2>{{ __("Extension Log") }}</h2>
<p>
    {{ __("This mostly consists of messages generated by the auto-updater.") }}
</p>
{% if logged %}
<table id="update-log" class="update-log">
    <thead>
    <tr>
        <th>{{ __("Component") }}</th>
        <th>{{ __("Date / Time") }}</th>
        <th>{{ __("Message") }}</th>
        <th>{{ __("Supplier") }}</th>
        <th>{{ __("Package") }}</th>
        <th>{{ __("Version") }}</th>
    </tr>
    </thead>

    {% for log in logged %}
    <tr class="update-log-entry log-{{ log.loglevel|e('html_attr') }}">
        <td>
            {{ log.component|ucfirst }}
        </td>
        <td>
            {{ log.created|date('F j, Y g:i:s A') }}
        </td>
        <td>
            {{ log.message }}
        </td>
        <td>
            {{ log.context['supplier'] }}
        </td>
        <td>
            {{ log.context['name'] }}
        </td>
        <td>
            {% if log.context.action == "UPDATE" %}
                {{ log.context['updateInfo']['version'] }}
            {% elseif log.context.action == "INSTALL" %}
                {{ log.context['installFile']['version'] }}
            {% endif %}
        </td>
        <td class="update-log-entry-actions">
            <button type="button" class="js-update-log-toggle" data-toggle-text="{{ __("Less Info")|e('html_attr') }}">
                {{ __("More Info") }}
            </button>
        </td>
    </tr>
    <tr class="update-log-hidden">
        <td colspan="7">
            <textarea title="details" class="readonly log-textarea update-log-textarea" readonly="readonly">{#
                #}{{ log.context|json_encode(constant("JSON_PRETTY_PRINT")) }}{#
            #}</textarea>
        </td>
    </tr>
    {% endfor %}
</table>
{% else %}
    <p>{{ __("No messages.") }}</p>
{% endif %}