From 360f5db2cff7814fc367dbd9e88c59b4e292681e Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 29 Apr 2024 11:06:06 +0200 Subject: [PATCH] add private key description --- resources/views/security/private-key/index.blade.php | 11 ++++++++--- routes/web.php | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/resources/views/security/private-key/index.blade.php b/resources/views/security/private-key/index.blade.php index 564fb1bff..65850ac48 100644 --- a/resources/views/security/private-key/index.blade.php +++ b/resources/views/security/private-key/index.blade.php @@ -8,10 +8,15 @@
@forelse ($privateKeys as $key) - -
-
{{ $key->name }}
+
+
+ {{ data_get($key, 'name') }} +
+
+ {{ $key->description }} +
@empty diff --git a/routes/web.php b/routes/web.php index bd85ecdd1..dfc768811 100644 --- a/routes/web.php +++ b/routes/web.php @@ -218,7 +218,7 @@ // Route::get('/security', fn () => view('security.index'))->name('security.index'); Route::get('/security/private-key', fn () => view('security.private-key.index', [ - 'privateKeys' => PrivateKey::ownedByCurrentTeam(['name', 'uuid', 'is_git_related'])->get() + 'privateKeys' => PrivateKey::ownedByCurrentTeam(['name', 'uuid', 'is_git_related','description'])->get() ]))->name('security.private-key.index'); // Route::get('/security/private-key/new', SecurityPrivateKeyCreate::class)->name('security.private-key.create'); Route::get('/security/private-key/{private_key_uuid}', SecurityPrivateKeyShow::class)->name('security.private-key.show');