From d7316c4dfe18ff9a34b5abf74564133812d41317 Mon Sep 17 00:00:00 2001
From: Senna <62171904+Poseidon281@users.noreply.github.com>
Date: Sun, 16 Jun 2024 23:54:49 +0200
Subject: [PATCH] Dashboard update. Update section (#390)
* Created command
* Pint Fixes
* Removed old upgrade command translations
* Update to Dashboard and linting Dashboard view
* Pint Fixes
* A few small improvements
* Delete modifications to upgrade command
* Revert "Removed old upgrade command translations"
This reverts commit 31315a0d9e2cd1cb43f01c2bbca9b4a4a06b34c1.
* Pint Fixes
* Boy132's Suggestions
---
lang/en/dashboard/index.php | 8 ++-
.../views/filament/pages/dashboard.blade.php | 58 ++++++++++---------
2 files changed, 36 insertions(+), 30 deletions(-)
diff --git a/lang/en/dashboard/index.php b/lang/en/dashboard/index.php
index 2c201a30b..72867b654 100644
--- a/lang/en/dashboard/index.php
+++ b/lang/en/dashboard/index.php
@@ -19,9 +19,13 @@ return [
'button_issues' => 'Create Issue',
'button_features' => 'Discuss Features',
],
- 'intro-update' => [
+ 'intro-update-available' => [
'heading' => 'Update available',
- 'content' => ':latestVersion is available! Read our documentation to update your Panel.',
+ 'content' => ':latestVersion is now available! Read our documentation to update your Panel.',
+ ],
+ 'intro-no-update' => [
+ 'heading' => 'Your Panel is up to date',
+ 'content' => 'You are currently using :version. Your panel is up-to-date!',
],
'intro-first-node' => [
'heading' => 'No Nodes Detected',
diff --git a/resources/views/filament/pages/dashboard.blade.php b/resources/views/filament/pages/dashboard.blade.php
index ef7f539bd..dae169716 100644
--- a/resources/views/filament/pages/dashboard.blade.php
+++ b/resources/views/filament/pages/dashboard.blade.php
@@ -1,5 +1,4 @@
{{ trans('dashboard/index.sections.intro-update-available.content', ['latestVersion' => $latestVersion]) }}
+ +{{ trans('dashboard/index.sections.intro-no-update.content', ['version' => $version]) }}
+{{ trans('dashboard/index.sections.intro-developers.content') }}
+{{ trans('dashboard/index.sections.intro-developers.content') }}
{{ trans('dashboard/index.sections.intro-developers.extra_note') }}
- -{{ trans('dashboard/index.sections.intro-update.content', ['latestVersion' => $latestVersion]) }}
+{{ trans('dashboard/index.sections.intro-developers.extra_note') }}
{{ trans('dashboard/index.sections.intro-first-node.content') }}
+{{ trans('dashboard/index.sections.intro-first-node.content') }}
@endif {{-- No Nodes Active --}} -{{ trans('dashboard/index.sections.intro-support.content') }}
+{{ trans('dashboard/index.sections.intro-support.content') }}
{{ trans('dashboard/index.sections.intro-support.extra_note') }}
+{{ trans('dashboard/index.sections.intro-support.extra_note') }}