Skip to content
Snippets Groups Projects
Commit 62aa25f9 authored by thomaswoehlke's avatar thomaswoehlke
Browse files

template changes

parent 531c22a2
No related branches found
No related tags found
No related merge requests found
......@@ -7,46 +7,7 @@
<div class="container">
<div class="row">
<div class="col">
{% if page_data.pages > 1 %}
<ul class="pagination">
{% if page_data.has_prev %}
<li class="page-item">
<a class="page-link"
href="{{ url_for( 'ecdc.url_ecdc_date_reported_all', page=page_data.prev_num) }}">
Previous
</a>
</li>
{% endif %}
{% for page_num in page_data.iter_pages() %}
{% if page_num %}
{% if page_num != page_data.page %}
<li class="page-item">
<a class="page-link"
href="{{ url_for( 'ecdc.url_ecdc_date_reported_all', page=page_num) }}">
{{ page_num }}
</a>
</li>
{% else %}
<li class="page-item active">
<a class="page-link" href="#">{{ page_num }}</a>
</li>
{% endif %}
{% else %}
<li class="page-item">
<span class="ellipsis page-link my-page-item-ellipsis-page-link"></span>
</li>
{% endif %}
{% endfor %}
{% if page_data.has_next %}
<li class="page-item">
<a class="page-link"
href="{{ url_for( 'ecdc.url_ecdc_date_reported_all', page=page_data.next_num) }}">
Next
</a>
</li>
{% endif %}
</ul>
{% endif %}
{% include 'ecdc/date_reported/ecdc_date_reported_all_pagination.html' %}
</div>
</div>
<div class="row">
......@@ -54,6 +15,11 @@
{% include 'ecdc/fragments/fragment_ecdc_table_date_reported.html' %}
</div>
</div>
<div class="row">
<div class="col">
{% include 'ecdc/date_reported/ecdc_date_reported_all_pagination.html' %}
</div>
</div>
</div>
{% endblock %}
......
......@@ -7,51 +7,7 @@
<div class="container">
<div class="row">
<div class="col">
{% if page_data.pages > 1 %}
<ul class="pagination">
{% if page_data.has_prev %}
<li class="page-item">
<a class="page-link"
href="{{ url_for( 'ecdc.url_ecdc_date_reported_one',
europe_date_reported_id=europe_date_reported.id,
page=page_data.prev_num) }}">
Previous
</a>
</li>
{% endif %}
{% for page_num in page_data.iter_pages() %}
{% if page_num %}
{% if page_num != page_data.page %}
<li class="page-item">
<a class="page-link"
href="{{ url_for( 'ecdc.url_ecdc_date_reported_one',
europe_date_reported_id=europe_date_reported.id,
page=page_num) }}">
{{ page_num }}
</a>
</li>
{% else %}
<li class="page-item active">
<a class="page-link" href="#">{{ page_num }}</a>
</li>
{% endif %}
{% else %}
<li class="page-item">
<span class="ellipsis page-link my-page-item-ellipsis-page-link"></span>
</li>
{% endif %}
{% endfor %}
{% if page_data.has_next %}
<li class="page-item">
<a class="page-link"
href="{{ url_for( 'ecdc.url_ecdc_date_reported_one',
europe_date_reported_id=europe_date_reported.id, page=page_data.next_num) }}">
Next
</a>
</li>
{% endif %}
</ul>
{% endif %}
{% include 'ecdc/date_reported/ecdc_date_reported_one_pagination.html' %}
</div>
</div>
<div class="row">
......@@ -59,6 +15,11 @@
{% include 'ecdc/fragments/fragment_ecdc_table_data.html' %}
</div>
</div>
<div class="row">
<div class="col">
{% include 'ecdc/date_reported/ecdc_date_reported_one_pagination.html' %}
</div>
</div>
</div>
{% endblock %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment