From 7fb776c2a4569e9b78432388b18b4769f7a7af3a Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 12 Jul 2023 09:19:41 +0200 Subject: [PATCH] add thead and tbody in maps table --- umap/static/umap/content.css | 5 ++- umap/templates/umap/map_table.html | 52 ++++++++++++++++-------------- 2 files changed, 32 insertions(+), 25 deletions(-) diff --git a/umap/static/umap/content.css b/umap/static/umap/content.css index f5e49e31..3f51571b 100644 --- a/umap/static/umap/content.css +++ b/umap/static/umap/content.css @@ -293,12 +293,15 @@ table.maps .map_fragment { width: 100%; min-width: 200px; } -table.maps tr:nth-child(even) { +table.maps tbody tr:nth-child(odd) { background-color: #f4f4f4; } table.maps td { text-align: center; } +table.maps thead tr { + line-height: 2em; +} diff --git a/umap/templates/umap/map_table.html b/umap/templates/umap/map_table.html index 43d8e9a5..954c12ed 100644 --- a/umap/templates/umap/map_table.html +++ b/umap/templates/umap/map_table.html @@ -1,29 +1,33 @@ {% load umap_tags umap_tags i18n %} - - - - - - - - - {% for map_inst in maps %} + - - - - - - + + + + + + - {% endfor %} + + + {% for map_inst in maps %} + + + + + + + + + {% endfor %} +
{% blocktrans %}Map{% endblocktrans %}{% blocktrans %}Name{% endblocktrans %}{% blocktrans %}Status{% endblocktrans %}{% blocktrans %}Last save{% endblocktrans %}{% blocktrans %}Owner{% endblocktrans %}{% blocktrans %}Actions{% endblocktrans %}
{% map_fragment map_inst prefix=prefix page=request.GET.p %} - {{ map_inst.name }} - {{ map_inst.get_edit_status_display }}{{ map_inst.modified_at }} - {{ map_inst.owner }} - - {% translate "Share" %} - {% translate "Edit" %} - {% translate "Download" %} - {% blocktrans %}Map{% endblocktrans %}{% blocktrans %}Name{% endblocktrans %}{% blocktrans %}Status{% endblocktrans %}{% blocktrans %}Last save{% endblocktrans %}{% blocktrans %}Owner{% endblocktrans %}{% blocktrans %}Actions{% endblocktrans %}
{% map_fragment map_inst prefix=prefix page=request.GET.p %} + {{ map_inst.name }} + {{ map_inst.get_edit_status_display }}{{ map_inst.modified_at }} + {{ map_inst.owner }} + + {% translate "Share" %} + {% translate "Edit" %} + {% translate "Download" %} +