Merge pull request #140 from openclassify/dia

#137 Show ad cover photo (cover photo included)
This commit is contained in:
Fatih Alp 2019-11-12 09:48:53 +03:00 committed by GitHub
commit 767dc128fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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',
],