mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
target blank
This commit is contained in:
@@ -14,7 +14,7 @@ class BookCaseTable extends DataTableComponent
|
|||||||
public function configure(): void
|
public function configure(): void
|
||||||
{
|
{
|
||||||
$this->setPrimaryKey('id')
|
$this->setPrimaryKey('id')
|
||||||
->setAdditionalSelects(['id'])
|
->setAdditionalSelects(['id', 'homepage'])
|
||||||
->setThAttributes(function (Column $column) {
|
->setThAttributes(function (Column $column) {
|
||||||
return [
|
return [
|
||||||
'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400',
|
'class' => 'px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:bg-gray-800 dark:text-gray-400',
|
||||||
@@ -45,7 +45,7 @@ class BookCaseTable extends DataTableComponent
|
|||||||
fn(
|
fn(
|
||||||
$row,
|
$row,
|
||||||
Column $column
|
Column $column
|
||||||
) => '<a class="underline text-amber-500" href="'.$row->homepage.'">Link</a>'
|
) => $row->homepage ? '<a target="_blank" class="underline text-amber-500" href="'.$row->homepage.'">Link</a>' : null
|
||||||
)
|
)
|
||||||
->html(),
|
->html(),
|
||||||
BooleanColumn::make('Oranged-Pilled', 'deactivated')
|
BooleanColumn::make('Oranged-Pilled', 'deactivated')
|
||||||
|
|||||||
Reference in New Issue
Block a user