diff --git a/umap/static/umap/content.css b/umap/static/umap/content.css index 3d7a8c2e..c961e81e 100644 --- a/umap/static/umap/content.css +++ b/umap/static/umap/content.css @@ -144,16 +144,19 @@ body.login header { } h2.section { text-transform: uppercase; - color: #666; - text-align: center; + color: #263B58; padding-top: 28px; } h2.tabs a { - color: #666; + color: #263B58; + text-decoration: underline; + text-decoration-thickness: 3px; + margin-right: 2rem; } h2.tabs a:not(.selected) { font-weight: normal; - color: #666; + color: #263B58; + text-decoration: none; } h2.tabs a:hover { text-decoration: underline; @@ -310,14 +313,81 @@ ul.umap-autocomplete { /* **************************** */ /* Dashboard */ /* **************************** */ +.table-header { + display: flex; + justify-content: space-between; + align-items: flex-end; + margin-bottom: 1rem; +} +.table-header form { + display: flex; + align-items: flex-end; +} +.table-header form input { + border: 2px solid #263B58; + border-radius: 0; + padding: .5rem 1rem; + margin-bottom: 0; + line-height: inherit; + height: 2.5rem; +} +.table-header form input[type="search"] { + width: 30ch; +} +.table-header form input[type="submit"] { + background-color: #263B58; + color: white; + font-weight: bold; +} + +.table-header .button-download { + width: inherit; + display: inline; + padding: .5rem 1rem; + border: 2px solid #263B58; + color: #263B58; + font-weight: bold; + background-color: initial; + margin-bottom: 0; + line-height: inherit; + height: 2.5rem; +} + table.maps { width: 100%; + border-collapse: collapse; } table.maps .map_fragment { display: block; height: 80vh; width: 100%; } +table.maps a, +table.maps thead { + color: #263B58; +} +table.maps a { + text-decoration: underline; +} +table.maps form { + display: inline; +} +table.maps input[type="submit"] { + display: inline; + background-color: transparent; + color: #263B58; + padding: 0; + width: inherit; + height: 1rem; + margin: 0; + line-height: inherit; +} +table.maps tbody tr { + border-bottom: 1px solid #BDC7D4; +} +table.maps tbody tr td { + padding: 5px 4px; +} table.maps tbody tr:nth-child(odd) { background-color: #f4f4f4; } @@ -357,12 +427,14 @@ dialog::backdrop { display: flex; flex-direction: row; justify-content: space-around; - margin: 1rem; - border-top: 1px solid gray; } .pagination > * { padding: 1rem; } +.pagination a { + color: #263B58; + text-decoration: underline; +} /* ************************************************* */ diff --git a/umap/templates/auth/user_form.html b/umap/templates/auth/user_form.html index 8fca2454..88f98328 100644 --- a/umap/templates/auth/user_form.html +++ b/umap/templates/auth/user_form.html @@ -1,9 +1,10 @@ {% extends "umap/content.html" %} {% load i18n %} {% block maincontent %} -
+

- {% trans "My Maps" %} | {% trans "My Profile" %} + {% trans "My Maps" %} + {% trans "My Profile" %}

diff --git a/umap/templates/umap/map_table.html b/umap/templates/umap/map_table.html index cec4ceeb..2491a36f 100644 --- a/umap/templates/umap/map_table.html +++ b/umap/templates/umap/map_table.html @@ -4,7 +4,8 @@ {% blocktrans %}Name{% endblocktrans %} {% blocktrans %}Preview{% endblocktrans %} - {% blocktrans %}Who can see / edit{% endblocktrans %} + {% blocktrans %}Who can see{% endblocktrans %} + {% blocktrans %}Who can edit{% endblocktrans %} {% blocktrans %}Last save{% endblocktrans %} {% blocktrans %}Owner{% endblocktrans %} {% blocktrans %}Actions{% endblocktrans %} @@ -13,12 +14,12 @@ {% for map_inst in maps %} {% with unique_id="map_"|addstr:map_inst.pk %} - {{ map_inst.preview_settings|json_script:unique_id }} {{ map_inst.name }} + {{ map_inst.preview_settings|json_script:unique_id }}
@@ -29,7 +30,8 @@
- {{ map_inst.get_share_status_display }} / {{ map_inst.get_edit_status_display }} + {{ map_inst.get_share_status_display }} + {{ map_inst.get_edit_status_display }} {{ map_inst.modified_at }} {{ map_inst.owner }} @@ -38,28 +40,16 @@ {% translate "Share" %} | {% translate "Edit" %} | {% translate "Download" %} | +
+ {% csrf_token %} + +
| {% translate "Delete" %} {% endwith %} {% endfor %} - - - - - {% blocktranslate count counter=maps.object_list|length %} - Download this map - {% plural %} - Download these {{ counter }} maps - {% endblocktranslate %} - - - - {% if maps.has_other_pages %} {% endif %}