mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 02:54: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_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',
|
||||
|
@ -1,5 +1,4 @@
|
||||
<x-filament-panels::page>
|
||||
|
||||
<x-filament-panels::header
|
||||
:actions="$this->getCachedHeaderActions()"
|
||||
:breadcrumbs="filament()->hasBreadcrumbs() ? $this->getBreadcrumbs() : []"
|
||||
@ -9,6 +8,31 @@
|
||||
|
||||
<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)
|
||||
<x-filament::section
|
||||
icon="tabler-code"
|
||||
@ -21,27 +45,11 @@
|
||||
>
|
||||
<x-slot name="heading">{{ trans('dashboard/index.sections.intro-developers.heading') }}</x-slot>
|
||||
|
||||
<p>{{ trans('dashboard/index.sections.intro-developers.content') }}</p>
|
||||
<p>{{ trans('dashboard/index.sections.intro-developers.content') }}</p>
|
||||
|
||||
<p><br /></p>
|
||||
|
||||
<p>{{ trans('dashboard/index.sections.intro-developers.extra_note') }}</p>
|
||||
|
||||
</x-filament::section>
|
||||
@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>
|
||||
<p>{{ trans('dashboard/index.sections.intro-developers.extra_note') }}</p>
|
||||
|
||||
</x-filament::section>
|
||||
@endif
|
||||
@ -58,14 +66,13 @@
|
||||
>
|
||||
<x-slot name="heading">{{ trans('dashboard/index.sections.intro-first-node.heading') }}</x-slot>
|
||||
|
||||
<p>{{ trans('dashboard/index.sections.intro-first-node.content') }}</p>
|
||||
<p>{{ trans('dashboard/index.sections.intro-first-node.content') }}</p>
|
||||
|
||||
</x-filament::section>
|
||||
@endif
|
||||
|
||||
{{-- No Nodes Active --}}
|
||||
|
||||
|
||||
<x-filament::section
|
||||
icon="tabler-heart-filled"
|
||||
icon-color="danger"
|
||||
@ -76,16 +83,14 @@
|
||||
>
|
||||
<x-slot name="heading">{{ trans('dashboard/index.sections.intro-support.heading') }}</x-slot>
|
||||
|
||||
<p>{{ trans('dashboard/index.sections.intro-support.content') }}</p>
|
||||
<p>{{ trans('dashboard/index.sections.intro-support.content') }}</p>
|
||||
|
||||
<p><br /></p>
|
||||
|
||||
<p>{{ trans('dashboard/index.sections.intro-support.extra_note') }}</p>
|
||||
<p>{{ trans('dashboard/index.sections.intro-support.extra_note') }}</p>
|
||||
|
||||
</x-filament::section>
|
||||
|
||||
|
||||
|
||||
<x-filament::section
|
||||
icon="tabler-question-mark"
|
||||
icon-color="info"
|
||||
@ -103,7 +108,4 @@
|
||||
</p>
|
||||
|
||||
</x-filament::section>
|
||||
|
||||
<div>
|
||||
</div>
|
||||
</x-filament-panels::page>
|
||||
|
Loading…
x
Reference in New Issue
Block a user