mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 02:11:36 +00:00
feat: display repository and branch in site details (#512)
Added `repository` and `branch` fields to the site details view. These fields are now visible when a site has a corresponding repository or branch and are formatted accordingly.
This commit is contained in:
parent
e52903c649
commit
6143eb94b4
@ -180,6 +180,16 @@ public function infolist(Infolist $infolist): Infolist
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
|
TextEntry::make('repository')
|
||||||
|
->label('Repository')
|
||||||
|
->visible(fn (Site $record) => $record->repository)
|
||||||
|
->formatStateUsing(fn (Site $record) => $record->repository)
|
||||||
|
->inlineLabel(),
|
||||||
|
TextEntry::make('branch')
|
||||||
|
->label('Branch')
|
||||||
|
->visible(fn (Site $record) => $record->branch)
|
||||||
|
->formatStateUsing(fn (Site $record) => $record->branch)
|
||||||
|
->inlineLabel(),
|
||||||
]),
|
]),
|
||||||
])
|
])
|
||||||
->record($this->site);
|
->record($this->site);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user