mirror of
https://github.com/pelican-dev/panel.git
synced 2026-07-15 21:48:08 +03:00
add server description to grid view too (#1851)
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -21,6 +21,7 @@ yarn-error.log
|
|||||||
/.idea
|
/.idea
|
||||||
/.nova
|
/.nova
|
||||||
/.vscode
|
/.vscode
|
||||||
|
/.ddev
|
||||||
|
|
||||||
public/assets/manifest.json
|
public/assets/manifest.json
|
||||||
/database/*.sqlite*
|
/database/*.sqlite*
|
||||||
|
|||||||
@@ -22,7 +22,10 @@
|
|||||||
"></div>
|
"></div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<div class="flex items-center mb-5 gap-2">
|
<div @class([
|
||||||
|
'flex items-center gap-2',
|
||||||
|
'mb-5' => !$server->description,
|
||||||
|
])>
|
||||||
<x-filament::icon-button
|
<x-filament::icon-button
|
||||||
:icon="$server->condition->getIcon()"
|
:icon="$server->condition->getIcon()"
|
||||||
:color="$server->condition->getColor()"
|
:color="$server->condition->getColor()"
|
||||||
@@ -45,6 +48,12 @@
|
|||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@if ($server->description)
|
||||||
|
<div class="text-left mb-1 ml-4 pl-4">
|
||||||
|
<p class="text-base text-gray-400">{{ Str::limit($server->description, 40, preserveWords: true) }}</p>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
<div class="flex justify-between text-center items-center gap-4">
|
<div class="flex justify-between text-center items-center gap-4">
|
||||||
<div>
|
<div>
|
||||||
<p class="text-sm dark:text-gray-400">{{ trans('server/dashboard.cpu') }}</p>
|
<p class="text-sm dark:text-gray-400">{{ trans('server/dashboard.cpu') }}</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user