diff options
author | Simon Rettberg | 2023-10-23 16:17:02 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-10-23 16:17:02 +0200 |
commit | 548190a5f7f45a7c01b86fa7f5b44a8eee319156 (patch) | |
tree | 5ce285b8d6c2d0572a4f21c3f6c0ef6512f19f7f /modules-available/systemstatus | |
parent | [systemstatus] Fix comment typo (diff) | |
download | slx-admin-548190a5f7f45a7c01b86fa7f5b44a8eee319156.tar.gz slx-admin-548190a5f7f45a7c01b86fa7f5b44a8eee319156.tar.xz slx-admin-548190a5f7f45a7c01b86fa7f5b44a8eee319156.zip |
[systemstatus] Add warning sign to tab on outdated DB
Diffstat (limited to 'modules-available/systemstatus')
-rw-r--r-- | modules-available/systemstatus/page.inc.php | 1 | ||||
-rw-r--r-- | modules-available/systemstatus/templates/_page.html | 6 | ||||
-rw-r--r-- | modules-available/systemstatus/templates/sys-update-main.html | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/modules-available/systemstatus/page.inc.php b/modules-available/systemstatus/page.inc.php index c97f6172..c87dabda 100644 --- a/modules-available/systemstatus/page.inc.php +++ b/modules-available/systemstatus/page.inc.php @@ -94,6 +94,7 @@ class Page_SystemStatus extends Page 'type' => $tab, 'name' => Dictionary::translate('tab_' . $tab, true), 'enabled' => User::hasPermission('tab.' . $tab), + 'important' => $tab === 'ListUpgradable' && SystemStatus::getAptLastDbUpdateTime() + 864000 < time(), ); } Permission::addGlobalTags($data['perms'], null, ['serverreboot']); diff --git a/modules-available/systemstatus/templates/_page.html b/modules-available/systemstatus/templates/_page.html index 4b62104c..dedcf01a 100644 --- a/modules-available/systemstatus/templates/_page.html +++ b/modules-available/systemstatus/templates/_page.html @@ -14,6 +14,9 @@ {{^enabled}} <li class="disabled"> <a> + {{#important}} + <span class="glyphicon glyphicon-warning-sign text-danger"></span> + {{/important}} {{name}} </a> </li> @@ -21,6 +24,9 @@ {{#enabled}} <li> <a href="#id-{{type}}_pane" class="ajax-tab" id="id-{{type}}" data-toggle="tab" role="tab"> + {{#important}} + <span class="glyphicon glyphicon-warning-sign text-danger"></span> + {{/important}} {{name}} </a> </li> diff --git a/modules-available/systemstatus/templates/sys-update-main.html b/modules-available/systemstatus/templates/sys-update-main.html index e12792d9..4bc3b00d 100644 --- a/modules-available/systemstatus/templates/sys-update-main.html +++ b/modules-available/systemstatus/templates/sys-update-main.html @@ -109,7 +109,7 @@ <div class="alert alert-warning">{{task.error}}</div> {{/task.error}} -<div class="pull-right"> +<div> <a href="https://www.bwlehrpool.de/wiki/doku.php/satellite/system_updates" target="_blank"> {{lang_updatesWikiLink}} <span class="glyphicon glyphicon-new-window"></span> |