{include file="$template_dir/layouts/main/content/content_header.html"}
{$entry.message nofilter}
{load_language_text section="update_downloader"}
{if $content.uninstalledUpdates}
{include file="$template_dir/update_downloader/uninstalled_updates_modal.html"}
{/if}
{if $content.updateStatus.info.http_code === 200}
{$txt.UPDATES_AVAILABLE}
{$txt.NOTICE_TEXT}
{if count($content.updateStatus.body.updates) > 0}
{foreach item=update key=fromVersion from=$content.updateStatus.body.updates}
-
{if isset($update.description[$language_code]) && !empty($update.description[$language_code])}
{$update.description[$language_code]|unescape:"html" nofilter}
{elseif !isset($update.description[$language_code]) && isset($update.description) && !empty($update.description)}
{$update.description|unescape:"html" nofilter}
{else}
{$txt.VERSION_FROM} {$fromVersion} {$txt.VERSION_TO} {$update.version}
{/if}
{if in_array($update.version, $content.downloadedUpdates) && !$content.downloadBeforeUpdate}
{$txt.ALREADY_DOWNLOADED}
{/if}
{/foreach}
{if !$content.downloadBeforeUpdate}
{$txt.ACTION_DOWNLOAD}
{/if}
{if count($content.updateStatus.body.updates) === count($content.downloadedUpdates) || $content.downloadBeforeUpdate}
{$txt.ACTION_INSTALL}
{/if}
{else}
{/if}
{/if}