{% set updates = gantry.platform.updates %}
{% if updates %}
{% set version = updates.0|split(' ')|last %}
<div class="g-grid">
    <div class="g-block">
        <div class="update-header clearfix">
            <span class="update-text">{{ 'GANTRY5_PLATFORM_UPDATES_AVAILABLE'|trans }}: {{ updates|join(', ') }}</span>
            <div class="update-tools">
                <a href="{{ gantry.platform.update|raw }}" class="button button-update">
                    <i class="fa fa-refresh"></i> <span>{{ 'GANTRY5_PLATFORM_UPDATE'|trans }}</span>
                </a>
                <a href="#" data-changelog="{{ version }}" class="button button-update">
                    <i class="fa fa-book"></i> <span>{{ 'GANTRY5_PLATFORM_CHANGELOG'|trans }}</span>
                </a>
                <a href="#" class="fa fa-close" data-g-close=".g-grid"></a>
            </div>
        </div>
    </div>
</div>
{% endif %}
