diff --git a/admin.php b/admin.php index 93e75f02..b4ac4380 100644 --- a/admin.php +++ b/admin.php @@ -355,6 +355,8 @@ class AdminPlugin extends Plugin 'OF_THIS', 'HAVE_AN_UPDATE_AVAILABLE', 'UPDATE_AVAILABLE', + 'UPDATES_AVAILABLE', + 'FULLY_UPDATED', 'DAYS']; foreach($strings as $string) { diff --git a/languages.yaml b/languages.yaml index d6f4e7c4..a567645f 100644 --- a/languages.yaml +++ b/languages.yaml @@ -424,6 +424,7 @@ en: METADATA_KEY: "Key (e.g. 'Keywords')" METADATA_VALUE: "Value (e.g. 'Blog, Grav')" USERNAME_HELP: Username should be between 3 and 16 characters, including lowercase letters, numbers, underscores, and hyphens. Uppercase letters, spaces, and special characters are not allowed + FULLY_UPDATED: Fully Updated es: PLUGIN_ADMIN: @@ -865,6 +866,7 @@ it: METADATA_KEY: "Key (e.g. 'Keywords')" METADATA_VALUE: "Value (e.g. 'Blog, Grav')" USERNAME_HELP: Il nome utente deve essere compreso tra 3 e 16 caratteri, composti da lettere minuscole, numeri, trattini o il carattere di sottolineatura. Lettere maiuscole, spazi e caratteri speciali non sono consentiti + FULLY_UPDATED: Tutto aggiornato de: PLUGIN_ADMIN: @@ -1287,3 +1289,5 @@ de: METADATA_KEY: "Key (e.g. 'Keywords')" METADATA_VALUE: "Value (e.g. 'Blog, Grav')" USERNAME_HELP: Username should be between 3 and 16 characters, including lowercase letters, numbers, underscores, and hyphens. Uppercase letters, spaces, and special characters are not allowed + FULLY_UPDATED: Fully Updated + diff --git a/themes/grav/js/admin-all.js b/themes/grav/js/admin-all.js index d9c5e8f9..e86922fd 100644 --- a/themes/grav/js/admin-all.js +++ b/themes/grav/js/admin-all.js @@ -78,6 +78,13 @@ $(function () { UpdatesChart.on('draw', function(data){ if (data.index) { return; } chart.find('.numeric span').text(Math.round(data.value) + '%'); + + var text = translations.PLUGIN_ADMIN.UPDATES_AVAILABLE; + if (data.value == 100) { + text = translations.PLUGIN_ADMIN.FULLY_UPDATED; + } + $('.js__updates-available-description').html(text) + $('.updates-chart .hidden').removeClass('hidden'); }); } diff --git a/themes/grav/templates/dashboard.html.twig b/themes/grav/templates/dashboard.html.twig index 643763ba..12b6c028 100644 --- a/themes/grav/templates/dashboard.html.twig +++ b/themes/grav/templates/dashboard.html.twig @@ -35,9 +35,9 @@
- -{{ "PLUGIN_ADMIN.UPDATED"|tu|lower }} +
-

{{ "PLUGIN_ADMIN.UPDATES_AVAILABLE"|tu }}

+