Lazy load history view with pagination. refs #149
This commit is contained in:
parent
fefbfcd503
commit
e3ae3a1ccb
3 changed files with 107 additions and 29 deletions
|
@ -28,6 +28,22 @@
|
|||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<!-- TODO: make this pagination look good -->
|
||||
{% if pagination.page > 1 or pagination.more %}
|
||||
<div>
|
||||
{% if pagination.page > 1 %}
|
||||
<a href="{{ url_for('.history', name=name, page=pagination.page - 1) }}"><</a>
|
||||
{% else %}
|
||||
<
|
||||
{% endif %}
|
||||
{{ pagination.page }}
|
||||
{% if pagination.more %}
|
||||
<a href="{{ url_for('.history', name=name, page=pagination.page + 1) }}">></a>
|
||||
{% else %}
|
||||
>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<p>
|
||||
<a class="btn btn-default btn-sm compare-revisions">Compare Revisions</a>
|
||||
</p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue