Files
gallery3/modules/gallery/views/upgrade_checker_block.html.php
Bharat Mediratta 20ae106c22 Display a message in the "Check for Gallery upgrades" block when
there's a newer version available, even if the user has dismissed the
site status message.  #1605.
2011-01-17 21:16:43 -08:00

54 lines
2.0 KiB
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<p>
<?= t("Gallery can check to see if there is a new version available for you to use. It is a good idea to upgrade your Gallery to get the latest features and security fixes. Your privacy is important so no information about your Gallery is shared during this process. You can disable this feature below.") ?>
</p>
<p>
<? if (gallery::RELEASE_CHANNEL == "release"): ?>
<?= t("You are using the official Gallery %version release, code named <i>%code_name</i>.", array("version" => gallery::VERSION, "code_name" => gallery::CODE_NAME)) ?>
<? else: ?>
<?= t("You are using an experimental snapshot of Gallery %version (build %build_number on branch %branch).", array("version" => gallery::VERSION, "branch" => gallery::RELEASE_BRANCH, "build_number" => gallery::build_number())) ?>
<? endif ?>
</p>
<? if ($new_version): ?>
<ul class="g-message-block">
<li class="g-message g-info">
<?= $new_version ?>
</li>
</ul>
<? endif ?>
<p>
<a class="g-button ui-state-default ui-corner-all"
href="<?= url::site("admin/upgrade_checker/check_now?csrf=$csrf") ?>">
<?= t("Check now") ?>
</a>
<? if ($auto_check_enabled): ?>
<a class="g-button ui-state-default ui-corner-all"
href="<?= url::site("admin/upgrade_checker/set_auto/0?csrf=$csrf") ?>">
<?= t("Disable automatic checking") ?>
</a>
<? else: ?>
<a class="g-button ui-state-default ui-corner-all"
href="<?= url::site("admin/upgrade_checker/set_auto/1?csrf=$csrf") ?>">
<?= t("Enable automatic checking") ?>
</a>
<? endif ?>
</p>
<p class="g-text-small">
<? if ($auto_check_enabled): ?>
<?= t("Automatic upgrade checking is enabled.") ?>
<? else: ?>
<?= t("Automatic upgrade checking is disabled.") ?>
<? endif ?>
<? if (!$version_info): ?>
<?= t("No upgrade checks have been made yet.") ?>
<? else: ?>
<?= t("The last upgrade check was made on %date.",
array("date" => gallery::date_time($version_info->timestamp))) ?>
<? endif ?>
</p>