WIP styling
This commit is contained in:
parent
4244ecf9b7
commit
7753167b3f
@ -20,3 +20,15 @@
|
|||||||
margin-bottom: $gap;
|
margin-bottom: $gap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pagination {
|
||||||
|
width: 800px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-content: space-between;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page {
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
@ -40,13 +40,18 @@
|
|||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% for i in range(1, audit_events.pages + 1) %}
|
{% set page_route = 'atst.activity_history' %}
|
||||||
{% if i == audit_events.page %}
|
{% set pagination = audit_events %}
|
||||||
|
|
||||||
|
<div class="pagination">
|
||||||
|
{% for i in range(1, pagination.pages + 1) %}
|
||||||
|
<span class="page">
|
||||||
|
{% if i == pagination.page %}
|
||||||
{{ i }}
|
{{ i }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ url_for('atst.activity_history', page=i) }}">{{ i }}</a>
|
<a href="{{ url_for(page_route, page=i) }}">{{ i }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user