#137 Show ad cover photo (cover photo included)

This commit is contained in:
Diatrex 2019-11-12 09:22:38 +03:00
parent bfc3a96f1a
commit 9bf5d31fc7
2 changed files with 7 additions and 4 deletions

View File

@ -82,6 +82,9 @@ return [
'finish_at' => [
'name' => 'Finish At'
],
'cover_photo' => [
'name' => 'Cover Photo'
],
'favs_adv' => [
'name' => 'Fav Ads'
],

View File

@ -82,11 +82,11 @@ class AdvsController extends AdminController
}
$table->setColumns([
'id' => [
'value' => function (EntryInterface $entry) {
return $entry->id;
}
'cover_photo' => [
'wrapper' => '<img width="64" src="{value.cover_photo}">',
'value' => ['cover_photo' => 'entry.cover_photo']
],
'entry.id',
'name' => [
'class' => 'advs-name',
],