These are chat archives for allegro/ralph

9th
May 2017
Mr Black
@lip177891840
May 09 2017 10:15
hello?
✪ vi4m Marcin Kliks
@vi4m
May 09 2017 10:18
Hi
Mr Black
@lip177891840
May 09 2017 10:35
i am new to here,
also a beginner to Django, want to seek help from you
Mr Black
@lip177891840
May 09 2017 10:45
here is my problem,
I want to add pagination to the result_list ,but i dont know how to turn on the switch in the pagination.html --(/ralph/src/ralph/admin/templates/adminpagination.html)
the code is :
{% if page_range %}
<div class="row">
<div class="small-12 columns pagination-centered">
<ul class="pagination">
{% if pagination_required %}
{% for i in page_range %}
{% admin_paginator_number cl i %}
{% endfor %}
{% endif %}
</ul>
</div>
</div>
{% endif %}
捕获1.PNG
Mr Black
@lip177891840
May 09 2017 10:52
i think that the variate (page_range, pagination_required) shuold be settd in the view (MVC),
but i cant found any view i used in simple demo in ralph.
✪ vi4m Marcin Kliks
@vi4m
May 09 2017 12:29
didn't assets already have pagination ?
yes, we did pagination for listings
@lip177891840 we set it to 100 records
Zrzut ekranu 2017-05-09 o 14.32.37.png