Index: app.js
===================================================================
--- app.js (Revision 30333)
+++ app.js (Arbeitskopie)
@@ -348,13 +348,24 @@
});
this._tabContainer.addChild(overviewPage);
- // check validity of SSL certificates
- umc.tools.umcpCommand( 'get/ucr', [ 'ssl/validity/days', 'ssl/validity/warning' ] ).then( dojo.hitch( this, function( data ) {
+ // get needet UCR variables
+ umc.tools.umcpCommand( 'get/ucr', [ 'ssl/validity/days', 'ssl/validity/warning', 'update/available', 'update/reboot/required' ] ).then( dojo.hitch( this, function( data ) {
+ // check validity of SSL certificates
var days = parseInt( data.result[ 'ssl/validity/days' ], 10 );
var warning = parseInt( data.result[ 'ssl/validity/warning' ], 10 );
if ( days <= warning ) {
overviewPage.addNote( this._( 'The SSL certificate will expire in %d days and should be renewed!', days ) );
}
+
+ // check if updates are available
+ if ( umc.tools.isTrue(data.result['update/available']) ) {
+ overviewPage.addNote( this._( 'An update for UCS is available. Please visit Online Update Module of Univention Management Console to install updates.' ) );
+ }
+
+ // check if system reboot is required
+ if ( umc.tools.isTrue(data.result['update/reboot/required']) ) {
+ overviewPage.addNote( this._( 'This system has been updated recently. A reboot is required to finish update.' ) );
+ }
}));
// add a CategoryPane for each category
Index: de.po
===================================================================
--- de.po (Revision 30333)
+++ de.po (Arbeitskopie)
@@ -606,3 +606,10 @@
#~ msgid "unlimited"
#~ msgstr "unbegrenzt"
+
+msgid "An update for UCS is available. Please visit Online Update Module to install updates."
+msgstr "Ein Update für UCS ist verfügbar. Bitte öffnen Sie das Online Update Modul um das Update einzuspielen."
+
+msgid "This system has been updated recently. A reboot is required to finish update."
+msgstr "Dieses System wurde kürzlich aktualisiert. Ein Neustart des Systems ist erforderlich, um das Update abzuschließen."
+