diff --git a/nummi/main/static/main/css/table.css b/nummi/main/static/main/css/table.css index a2ec930..86710ac 100644 --- a/nummi/main/static/main/css/table.css +++ b/nummi/main/static/main/css/table.css @@ -12,7 +12,9 @@ .table.col6 {grid-template-columns: repeat(6, auto)} .table.col1-1 {grid-template-columns: min-content auto} .table.col1-1-1 {grid-template-columns: min-content auto min-content} +.table.col2-4 {grid-template-columns: repeat(2, min-content) repeat(4, auto)} .table.col1-5 {grid-template-columns: min-content repeat(5, auto)} +.table.col2-5 {grid-template-columns: repeat(2, min-content) repeat(5, auto)} .table.col1-6 {grid-template-columns: min-content repeat(6, auto)} .table.col1-7 {grid-template-columns: min-content repeat(7, auto)} diff --git a/nummi/main/templates/main/table/snapshot.html b/nummi/main/templates/main/table/snapshot.html index c5df7d6..c34670d 100644 --- a/nummi/main/templates/main/table/snapshot.html +++ b/nummi/main/templates/main/table/snapshot.html @@ -1,14 +1,16 @@ {% load main_extras %} {% load i18n %} -
+
+ {% translate "Date" %} - + {% if not account %} + + {% endif %} {% translate "Value" %} {% translate "Difference" %} {% translate "Transactions" %} - {% translate "Valid" %}
{% if new_snapshot_url %}
@@ -17,6 +19,13 @@ {% endif %} {% for snap in snapshots %}
+ + {% if snap.sum == snap.diff %} + + {% else %} + + {% endif %} + {% if snap.file %} @@ -27,22 +36,15 @@ {{ snap.date|date:"Y-m-d" }} + {% if not account %} + {% endif %} {{ snap.value|value }} {{ snap.diff|pmvalue }} - {% with sum=snap.sum %} - {{ sum|pmvalue }} - - {% if sum == snap.diff %} - - {% else %} - - {% endif %} - - {% endwith %} + {{ snap.sum|pmvalue }}
{% endfor %} {% if snapshots_url %}