mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
#1291 fix mobile button text for admin panel
This commit is contained in:
parent
90f14e12c0
commit
f22698fea1
@ -50,9 +50,16 @@ class AdvsController extends AdminController
|
|||||||
'status' => [
|
'status' => [
|
||||||
'text' => function (EntryInterface $entry) {
|
'text' => function (EntryInterface $entry) {
|
||||||
if ($entry->status == 'approved') {
|
if ($entry->status == 'approved') {
|
||||||
return "visiosoft.module.advs::button.decline";
|
return "<font class='hidden-xs-down'>" . trans('visiosoft.module.advs::button.decline') . "</font>";
|
||||||
} else {
|
} else {
|
||||||
return "visiosoft.module.advs::button.approve";
|
return "<font class='hidden-xs-down'>" . trans('visiosoft.module.advs::button.approve') . "</font>";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'icon' => function (EntryInterface $entry) {
|
||||||
|
if ($entry->status == 'approved') {
|
||||||
|
return "fa fa-eye-slash";
|
||||||
|
} else {
|
||||||
|
return "fa fa-eye";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'href' => function (EntryInterface $entry) {
|
'href' => function (EntryInterface $entry) {
|
||||||
@ -72,10 +79,13 @@ class AdvsController extends AdminController
|
|||||||
],
|
],
|
||||||
'edit' => [
|
'edit' => [
|
||||||
'href' => '/advs/edit_advs/{entry.id}',
|
'href' => '/advs/edit_advs/{entry.id}',
|
||||||
|
'text' => "<font class='hidden-xs-down'>" . trans('streams::button.edit') . "</font>",
|
||||||
],
|
],
|
||||||
'change_owner' => [
|
'change_owner' => [
|
||||||
'data-toggle' => 'modal',
|
'data-toggle' => 'modal',
|
||||||
'data-target' => '#modal',
|
'data-target' => '#modal',
|
||||||
|
'text' => "<font class='hidden-xs-down'>" . trans('visiosoft.module.advs::button.change_owner') . "</font>",
|
||||||
|
'icon' => 'fa fa-users',
|
||||||
'href' => 'admin/advs-users/choose/{entry.id}',
|
'href' => 'admin/advs-users/choose/{entry.id}',
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user