(2010-) * @author Maurice Preuß * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Tabellisting * */ use Froxlor\UI\Callbacks\Domain; use Froxlor\UI\Listing; return [ 'domain_list' => [ 'title' => $lng['admin']['domains'], 'icon' => 'fa-solid fa-globe', 'columns' => [ 'd.domain_ace' => [ 'label' => $lng['domains']['domainname'], 'field' => 'domain_ace', ], 'd.documentroot' => [ 'label' => $lng['panel']['path'], 'field' => 'documentroot', 'callback' => [Domain::class, 'domainTarget'], ] ], 'visible_columns' => Listing::getVisibleColumnsForListing('domain_list', [ 'd.domain_ace', 'd.documentroot' ]), 'actions' => [ 'edit' => [ 'icon' => 'fa fa-edit', 'title' => $lng['panel']['edit'], 'href' => [ 'section' => 'domains', 'page' => 'domains', 'action' => 'edit', 'id' => ':id' ], 'visible' => [Domain::class, 'canEdit'] ], 'logfiles' => [ 'icon' => 'fa fa-file', 'title' => $lng['panel']['viewlogs'], 'href' => [ 'section' => 'domains', 'page' => 'logfiles', 'domain_id' => ':id' ], 'visible' => [Domain::class, 'canViewLogs'] ], 'domaindnseditor' => [ 'icon' => 'fa fa-globe', 'title' => $lng['dnseditor']['edit'], 'href' => [ 'section' => 'domains', 'page' => 'domaindnseditor', 'domain_id' => ':id' ], 'visible' => [Domain::class, 'canEditDNS'] ], 'letsencrypt' => [ 'icon' => 'fa fa-shield', 'title' => $lng['panel']['letsencrypt'], 'visible' => ':letsencrypt' // @fixme ], 'delete' => [ 'icon' => 'fa fa-trash', 'title' => $lng['panel']['delete'], 'class' => 'text-danger', 'href' => [ 'section' => 'domains', 'page' => 'domains', 'action' => 'delete', 'id' => ':id' ], 'visible' => [Domain::class, 'canDelete'] ] ] ] ];