summaryrefslogtreecommitdiffstats
path: root/admin/administration.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/administration.php')
-rwxr-xr-xadmin/administration.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/admin/administration.php b/admin/administration.php
index 26f6710..369f65b 100755
--- a/admin/administration.php
+++ b/admin/administration.php
@@ -19,6 +19,12 @@ $header_extra = <<<"HTML"
HTML;
+$repo_url = 'https://github.com/moonmoon/moonmoon';
+$releases_url = "$repo_url/releases";
+$link_url = "<a href='$releases_url'>$releases_url</a>";
+$version_current = str_replace('%s', $moon_version, $l10n->getString('Your moonmoon instance version is %s.'));
+$version_action = str_replace('%s', $link_url, $l10n->getString('You can check for a more recent version on: %s.'));
+
$page_content = <<<"FRAGMENT"
<div class="widget">
@@ -38,6 +44,14 @@ $page_content = <<<"FRAGMENT"
</form>
</div>
+ <div class="widget">
+ <h3>{$l10n->getString('Upgrade moonmoon')}</h3>
+ <form>
+ <p>{$version_current}</p>
+ <p>{$version_action}</p>
+ </form>
+ </div>
+
FRAGMENT;
$footer_extra = '';