mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 19:14:45 +02:00
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
This commit is contained in:
parent
011579451d
commit
d7316c4dfe
@ -19,9 +19,13 @@ return [
|
|||||||
'button_issues' => 'Create Issue',
|
'button_issues' => 'Create Issue',
|
||||||
'button_features' => 'Discuss Features',
|
'button_features' => 'Discuss Features',
|
||||||
],
|
],
|
||||||
'intro-update' => [
|
'intro-update-available' => [
|
||||||
'heading' => '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' => [
|
'intro-first-node' => [
|
||||||
'heading' => 'No Nodes Detected',
|
'heading' => 'No Nodes Detected',
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<x-filament-panels::page>
|
<x-filament-panels::page>
|
||||||
|
|
||||||
<x-filament-panels::header
|
<x-filament-panels::header
|
||||||
:actions="$this->getCachedHeaderActions()"
|
:actions="$this->getCachedHeaderActions()"
|
||||||
:breadcrumbs="filament()->hasBreadcrumbs() ? $this->getBreadcrumbs() : []"
|
:breadcrumbs="filament()->hasBreadcrumbs() ? $this->getBreadcrumbs() : []"
|
||||||
@ -9,6 +8,31 @@
|
|||||||
|
|
||||||
<p>{{ trans('dashboard/index.expand_sections') }}</p>
|
<p>{{ trans('dashboard/index.expand_sections') }}</p>
|
||||||
|
|
||||||
|
@if (!$isLatest)
|
||||||
|
<x-filament::section
|
||||||
|
icon="tabler-info-circle"
|
||||||
|
icon-color="warning"
|
||||||
|
id="intro-update-available"
|
||||||
|
:header-actions="$updateActions"
|
||||||
|
>
|
||||||
|
<x-slot name="heading">{{ trans('dashboard/index.sections.intro-update-available.heading') }}</x-slot>
|
||||||
|
|
||||||
|
<p>{{ trans('dashboard/index.sections.intro-update-available.content', ['latestVersion' => $latestVersion]) }}</p>
|
||||||
|
|
||||||
|
</x-filament::section>
|
||||||
|
@else
|
||||||
|
<x-filament::section
|
||||||
|
icon="tabler-checkbox"
|
||||||
|
icon-color="success"
|
||||||
|
id="intro-no-update"
|
||||||
|
>
|
||||||
|
<x-slot name="heading">{{ trans('dashboard/index.sections.intro-no-update.heading') }}</x-slot>
|
||||||
|
|
||||||
|
<p>{{ trans('dashboard/index.sections.intro-no-update.content', ['version' => $version]) }}</p>
|
||||||
|
</x-filament::section>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
|
||||||
@if ($inDevelopment)
|
@if ($inDevelopment)
|
||||||
<x-filament::section
|
<x-filament::section
|
||||||
icon="tabler-code"
|
icon="tabler-code"
|
||||||
@ -30,22 +54,6 @@
|
|||||||
</x-filament::section>
|
</x-filament::section>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (!$isLatest)
|
|
||||||
<x-filament::section
|
|
||||||
icon="tabler-info-circle"
|
|
||||||
icon-color="warning"
|
|
||||||
id="intro-update"
|
|
||||||
collapsible
|
|
||||||
persist-collapsed
|
|
||||||
:header-actions="$updateActions"
|
|
||||||
>
|
|
||||||
<x-slot name="heading">{{ trans('dashboard/index.sections.intro-update.heading') }}</x-slot>
|
|
||||||
|
|
||||||
<p>{{ trans('dashboard/index.sections.intro-update.content', ['latestVersion' => $latestVersion]) }}</p>
|
|
||||||
|
|
||||||
</x-filament::section>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
{{-- No Nodes Created --}}
|
{{-- No Nodes Created --}}
|
||||||
@if ($nodesCount <= 0)
|
@if ($nodesCount <= 0)
|
||||||
<x-filament::section
|
<x-filament::section
|
||||||
@ -65,7 +73,6 @@
|
|||||||
|
|
||||||
{{-- No Nodes Active --}}
|
{{-- No Nodes Active --}}
|
||||||
|
|
||||||
|
|
||||||
<x-filament::section
|
<x-filament::section
|
||||||
icon="tabler-heart-filled"
|
icon="tabler-heart-filled"
|
||||||
icon-color="danger"
|
icon-color="danger"
|
||||||
@ -84,8 +91,6 @@
|
|||||||
|
|
||||||
</x-filament::section>
|
</x-filament::section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<x-filament::section
|
<x-filament::section
|
||||||
icon="tabler-question-mark"
|
icon="tabler-question-mark"
|
||||||
icon-color="info"
|
icon-color="info"
|
||||||
@ -103,7 +108,4 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
</x-filament::section>
|
</x-filament::section>
|
||||||
|
|
||||||
<div>
|
|
||||||
</div>
|
|
||||||
</x-filament-panels::page>
|
</x-filament-panels::page>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user