Skip to content

Commit

Permalink
show the current channel and add links to the changelogs
Browse files Browse the repository at this point in the history
Signed-off-by: szaimen <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Mar 2, 2022
1 parent 853a880 commit dcccd95
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions php/public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
'has_update_available' => $dockerActionManger->isAnyUpdateAvailable(),
'last_backup_time' => $configurationManager->GetLastBackupTime(),
'backup_times' => $configurationManager->GetBackupTimes(),
'current_channel' => $configurationManager->GetCurrentChannel(),
]);
})->setName('profile');
$app->get('/login', function ($request, $response, $args) use ($container) {
Expand Down
11 changes: 10 additions & 1 deletion php/templates/containers.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down Expand Up @@ -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 %}
Expand Down

0 comments on commit dcccd95

Please sign in to comment.