mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-27 23:37:08 +00:00
修改分页
This commit is contained in:
parent
cc72d59965
commit
4f25124d92
@ -67,23 +67,38 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<div class="row">
|
||||||
<ul class="pagination">
|
<div class="col-sm-6">
|
||||||
{% if contacts.has_previous %}
|
<div class="dataTables_info" id="editable_info" role="status" aria-live="polite">Showing 1 to 25 of 57 entries</div>
|
||||||
<li><a href="?page={{ contacts.previous_page_number }}">«</a></li>
|
</div>
|
||||||
{% endif %}
|
<div class="col-sm-6">
|
||||||
|
<div class="dataTables_paginate paging_simple_numbers" id="editable_paginate">
|
||||||
{% for page in p.page_range %}
|
<ul class="pagination">
|
||||||
{% ifequal offset1 page %}
|
{% if contacts.has_previous %}
|
||||||
<li class="active"><a href="?page={{ page }}" title="第{{ page }}页">{{ page }}</a></li>
|
<li class="paginate_button previous" aria-controls="editable" tabindex="0" id="editable_previous">
|
||||||
{% else %}
|
{% else %}
|
||||||
<li><a href="?page={{ page }}" title="第{{ page }}页">{{ page }}</a></li>
|
<li class="paginate_button previous disabled" aria-controls="editable" tabindex="0" id="editable_previous">
|
||||||
{% endifequal %}
|
{% endif %}
|
||||||
{% endfor %}
|
<a href="?page={{ contacts.previous_page_number }}">Previous</a>
|
||||||
{% if contacts.has_next %}
|
</li>
|
||||||
<li><a href="?page={{ contacts.next_page_number }}">»</a></li>
|
{% for page in p.page_range %}
|
||||||
{% endif %}
|
{% ifequal offset1 page %}
|
||||||
</ul>
|
<li class="paginate_button active" aria-controls="editable" tabindex="0"><a href="?page={{ page }}" title="第{{ page }}页">{{ page }}</a></li>
|
||||||
|
{% else %}
|
||||||
|
<li class="paginate_button" aria-controls="editable" tabindex="0"><a href="?page={{ page }}" title="第{{ page }}页">{{ page }}</a></li>
|
||||||
|
{% endifequal %}
|
||||||
|
{% endfor %}
|
||||||
|
{% if contacts.has_next %}
|
||||||
|
<li class="paginate_button next" aria-controls="editable" tabindex="0" id="editable_next">
|
||||||
|
{% else %}
|
||||||
|
<li class="paginate_button next disabled" aria-controls="editable" tabindex="0" id="editable_next">
|
||||||
|
{% endif %}
|
||||||
|
<a href="#">Next</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user