WIP styling

This commit is contained in:
richard-dds 2018-11-13 14:37:50 -05:00
parent 4244ecf9b7
commit 7753167b3f
2 changed files with 25 additions and 8 deletions

View File

@ -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;
}

View File

@ -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 %}