mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
Merge pull request #147 from openclassify/dıa
add pagination to the main page
This commit is contained in:
commit
22be3e0503
@ -152,7 +152,7 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
|||||||
|
|
||||||
public function popularAdvs()
|
public function popularAdvs()
|
||||||
{
|
{
|
||||||
return $this->getAdv()->where('popular_adv', 1)->paginate(9);
|
return $this->getAdv()->where('popular_adv', 1)->paginate(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function advsofDay()
|
public function advsofDay()
|
||||||
|
|||||||
@ -21,8 +21,8 @@ return [
|
|||||||
's-type-latest-limit' => [
|
's-type-latest-limit' => [
|
||||||
'type' => 'anomaly.field_type.integer',
|
'type' => 'anomaly.field_type.integer',
|
||||||
'config' => [
|
'config' => [
|
||||||
'default_value' => 36,
|
'default_value' => 5,
|
||||||
'min' => 12,
|
'min' => 5,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
's-type-showcase-limit' => [
|
's-type-showcase-limit' => [
|
||||||
|
|||||||
@ -246,6 +246,7 @@
|
|||||||
</div><!-- item-info -->
|
</div><!-- item-info -->
|
||||||
</div><!-- ad-item -->
|
</div><!-- ad-item -->
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{{ latest_advs.links | raw }}
|
||||||
</div><!-- tab-pane -->
|
</div><!-- tab-pane -->
|
||||||
|
|
||||||
<!-- tab-pane -->
|
<!-- tab-pane -->
|
||||||
@ -314,6 +315,7 @@
|
|||||||
</div><!-- item-info -->
|
</div><!-- item-info -->
|
||||||
</div><!-- ad-item -->
|
</div><!-- ad-item -->
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{{ popular_advs.links | raw }}
|
||||||
</div><!-- tab-pane -->
|
</div><!-- tab-pane -->
|
||||||
</div>
|
</div>
|
||||||
</div><!-- trending-ads -->
|
</div><!-- trending-ads -->
|
||||||
|
|||||||
1
addons/default/visiosoft/demodata-module
Submodule
1
addons/default/visiosoft/demodata-module
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit e87cf9caa2e9fc7ebb35e650bd8cb17a1655aac1
|
||||||
Loading…
Reference in New Issue
Block a user