show the current channel and add links to the changelogs

Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
szaimen 2022-03-02 15:47:16 +01:00
parent 853a880c9d
commit 6232000e31
2 changed files with 11 additions and 1 deletions

View file

@ -88,6 +88,7 @@ $app->get('/containers', function ($request, $response, $args) use ($container)
'has_update_available' => $dockerActionManger->isAnyUpdateAvailable(),
'last_backup_time' => $configurationManager->GetLastBackupTime(),
'backup_times' => $configurationManager->GetBackupTimes(),
'current_channel' => $dockerActionManger->GetCurrentChannel(),
]);
})->setName('profile');
$app->get('/login', function ($request, $response, $args) use ($container) {

View file

@ -19,6 +19,8 @@
<h1>Nextcloud AIO Beta v0.6.0</h1>
This is beta software and not production ready.<br><br>
You are currently running the {{ current_channel }} channel.<br><br>
{% set isAnyRunning = false %}
{% set isWatchtowerRunning = false %}
{% set isBackupContainerRunning = false %}
@ -170,7 +172,14 @@
<input class="button" type="submit" value="Update mastercontainer" />
</form>
{% else %}
⚠ A mastercontainer update is available. Please stop your containers in order to be able to update the mastercontainer.
⚠ A mastercontainer update is available. Please stop your containers in order to be able to update the mastercontainer.<br><br>
{% endif %}
{% if current_channel starts with 'latest' %}
You can find the changelog <a href="https://github.com/nextcloud/all-in-one/releases/latest">here</a><br><br>
{% elseif current_channel starts with 'beta' %}
You can find the changelog <a href="https://github.com/nextcloud/all-in-one/releases">here</a><br><br>
{% elseif current_channel starts with 'develop' %}
You can find all changes <a href="https://github.com/nextcloud-releases/all-in-one/commits/main">here</a><br><br>
{% endif %}
{% endif %}
{% endif %}