From d59280eea85d7ca33bc5ea3d81c9edccc2263eab Mon Sep 17 00:00:00 2001 From: thomaswoehlke <thomas.woehlke@gmail.com> Date: Tue, 25 May 2021 22:39:35 +0200 Subject: [PATCH] Refactoring: vaccination --- .../who/data/who_table_global_data.html | 37 +------------------ .../templates/who/flat/who_flat_table.html | 4 +- .../who/imported/who_imported_table.html | 4 +- .../who/region/all/who_region_all_table.html | 3 +- 4 files changed, 10 insertions(+), 38 deletions(-) diff --git a/src/flask_covid19/blueprints/data_who/templates/who/data/who_table_global_data.html b/src/flask_covid19/blueprints/data_who/templates/who/data/who_table_global_data.html index 2f31b0e7..2a1df620 100644 --- a/src/flask_covid19/blueprints/data_who/templates/who/data/who_table_global_data.html +++ b/src/flask_covid19/blueprints/data_who/templates/who/data/who_table_global_data.html @@ -1,40 +1,7 @@ <div class="table-responsive"> <table class="table table-hover table-striped table-dark"> <thead class="table-secondary"> - <tr> - <th scope="col"> - <a href="{{ url_for( 'who.url_who_date_reported_all') }}"> - date reported - </a> - </th> - <th scope="col"> - deaths new - </th> - <th scope="col"> - cases new - </th> - <th scope="col"> - deaths cumulative - </th> - <th scope="col"> - cases cumulative - </th> - <th scope="col"> - <a href="{{ url_for( 'who.url_who_country_all') }}"> - country code - </a> - </th> - <th scope="col"> - <a href="{{ url_for( 'who.url_who_country_all') }}"> - country - </a> - </th> - <th scope="col"> - <a href="{{ url_for( 'who.url_who_region_all') }}"> - region - </a> - </th> - </tr> + {% include 'who/data/who_table_global_data_head.html' %} </thead> <tbody> {% for who_global_data in page_data.items %} @@ -67,7 +34,7 @@ {% endfor %} </tbody> <tfoot> - + {% include 'who/data/who_table_global_data_head.html' %} </tfoot> </table> </div> \ No newline at end of file diff --git a/src/flask_covid19/blueprints/data_who/templates/who/flat/who_flat_table.html b/src/flask_covid19/blueprints/data_who/templates/who/flat/who_flat_table.html index 0f6525af..c28f75d8 100644 --- a/src/flask_covid19/blueprints/data_who/templates/who/flat/who_flat_table.html +++ b/src/flask_covid19/blueprints/data_who/templates/who/flat/who_flat_table.html @@ -1,3 +1,4 @@ + <div class="table-responsive"> <table class="table table-hover table-striped table-dark"> <thead> {% include 'who/flat/who_flat_table_head.html' %} @@ -35,4 +36,5 @@ <tfoot> {% include 'who/flat/who_flat_table_head.html' %} </tfoot> - </table> \ No newline at end of file + </table> + </div> \ No newline at end of file diff --git a/src/flask_covid19/blueprints/data_who/templates/who/imported/who_imported_table.html b/src/flask_covid19/blueprints/data_who/templates/who/imported/who_imported_table.html index 9ea10af0..c9cad545 100644 --- a/src/flask_covid19/blueprints/data_who/templates/who/imported/who_imported_table.html +++ b/src/flask_covid19/blueprints/data_who/templates/who/imported/who_imported_table.html @@ -1,3 +1,4 @@ + <div class="table-responsive"> <table class="table table-hover table-striped table-dark"> <thead> {% include 'who/flat/who_flat_table_head.html' %} @@ -19,4 +20,5 @@ <tfoot> {% include 'who/flat/who_flat_table_head.html' %} </tfoot> - </table> \ No newline at end of file + </table> + </div> \ No newline at end of file diff --git a/src/flask_covid19/blueprints/data_who/templates/who/region/all/who_region_all_table.html b/src/flask_covid19/blueprints/data_who/templates/who/region/all/who_region_all_table.html index cedcbff4..4548c266 100644 --- a/src/flask_covid19/blueprints/data_who/templates/who/region/all/who_region_all_table.html +++ b/src/flask_covid19/blueprints/data_who/templates/who/region/all/who_region_all_table.html @@ -1,4 +1,4 @@ - + <div class="table-responsive"> <table class="table table-hover table-striped table-dark"> <thead> <tr> @@ -22,3 +22,4 @@ </tr> </tfoot> </table> + </div> -- GitLab