diff --git a/umap/static/umap/content.css b/umap/static/umap/content.css index 5e468f8c..f5e49e31 100644 --- a/umap/static/umap/content.css +++ b/umap/static/umap/content.css @@ -282,6 +282,26 @@ ul.umap-autocomplete { } +/* **************************** */ +/* Dashboard */ +/* **************************** */ +table.maps { + width: 100%; +} +table.maps .map_fragment { + height: 100px; + width: 100%; + min-width: 200px; +} +table.maps tr:nth-child(even) { + background-color: #f4f4f4; +} +table.maps td { + text-align: center; +} + + + /* **************************** */ /* Override Leaflet.Storage */ /* **************************** */ diff --git a/umap/templates/umap/map_table.html b/umap/templates/umap/map_table.html new file mode 100644 index 00000000..efb22168 --- /dev/null +++ b/umap/templates/umap/map_table.html @@ -0,0 +1,29 @@ +{% load umap_tags umap_tags i18n %} + + + + + + + + + + {% for map_inst in maps %} + + + + + + + + + {% endfor %} +
{% 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" %} +
diff --git a/umap/templates/umap/navigation.html b/umap/templates/umap/navigation.html index d6c753a7..e0c6af38 100644 --- a/umap/templates/umap/navigation.html +++ b/umap/templates/umap/navigation.html @@ -9,7 +9,7 @@