mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
fix listing
This commit is contained in:
parent
1fad2eb43f
commit
742dce6f08
@ -21,7 +21,7 @@
|
||||
<div id="pageTitle" class="d-flex justify-content-between border-bottom pb-2 px-3 mb-3">
|
||||
<p>
|
||||
{{ trans('visiosoft.module.advs::field.search_ad_result_text', {
|
||||
'count': advs.total,
|
||||
'count': (advs.total+featured_advs.total),
|
||||
'name': catText ? catText : '',
|
||||
})|raw }}
|
||||
</p>
|
||||
|
||||
@ -25,6 +25,8 @@
|
||||
{% endif %}
|
||||
|
||||
<div id="mobileListing">
|
||||
{{ addBlock('ad-list/partials/mobile-list', {'featured_advs': featured_advs, 'vars': _context})|raw }}
|
||||
|
||||
{% for adv in advs %}
|
||||
<a href="{{ adv.detail_url }}" class="listing-item d-flex p-2">
|
||||
<img src="{{ adv.cover_photo }}" alt="{{ adv.name }}" class="rounded-sm">
|
||||
|
||||
@ -45,7 +45,7 @@ class AddViewAdsButton
|
||||
$dropdown = array_merge($buttons['settings']['dropdown'], [
|
||||
"ads" => [
|
||||
"text" => trans('visiosoft.theme.defaultadmin::button.view_ads'),
|
||||
"href" => "admin/advs?filter_User={entry.id}"
|
||||
"href" => "admin/advs?filter_user={entry.id}"
|
||||
]
|
||||
]);
|
||||
$buttons['settings']['dropdown'] = $dropdown;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user