mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
logs view adds paging ability
settings.LOGS_PER_PAGE controls logs count per page
This commit is contained in:
parent
317c2a85ae
commit
6afcd00e2e
6 changed files with 35 additions and 7 deletions
12
logs/templates/paging.html
Normal file
12
logs/templates/paging.html
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<center>
|
||||
{% if page > 1 %}
|
||||
<a href="{% url 'showlogspage' page|add:"-1" %}">←</a>
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
{% if has_next_page %}
|
||||
<a href="{% url 'showlogspage' page|add:"1" %}">→</a>
|
||||
{% else %}
|
||||
|
||||
{% endif %}
|
||||
</center>
|
||||
Loading…
Add table
Add a link
Reference in a new issue