From c210e91fffa634c9d7e9ffc94973ef999b609169 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Tue, 18 Apr 2023 15:27:14 +0200 Subject: [PATCH] Change tables with more items to show --- nummi/main/static/main/css/table.css | 3 ++ nummi/main/templates/main/table/snapshot.html | 30 +++++-------------- .../templates/main/table/transaction.html | 25 ++-------------- 3 files changed, 14 insertions(+), 44 deletions(-) diff --git a/nummi/main/static/main/css/table.css b/nummi/main/static/main/css/table.css index c4d9c0f..7c887ff 100644 --- a/nummi/main/static/main/css/table.css +++ b/nummi/main/static/main/css/table.css @@ -1,6 +1,9 @@ table { border-collapse: collapse; } +table.more tbody:last-child tr:last-child { + border-bottom: .1rem dashed var(--gray); +} table.full-width { width: 100%; } diff --git a/nummi/main/templates/main/table/snapshot.html b/nummi/main/templates/main/table/snapshot.html index 439e086..adc90a9 100644 --- a/nummi/main/templates/main/table/snapshot.html +++ b/nummi/main/templates/main/table/snapshot.html @@ -1,17 +1,12 @@ {% load main_extras %} {% load i18n %} -{% if new_snapshot_url %} -

- {% translate "New statement" %} -

-{% endif %} -{% if snapshots_url %} -

- {% translate "View all statements" %} -

-{% endif %}
- + {% if new_snapshot_url %} +

+ {% translate "New statement" %} +

+ {% endif %} +
@@ -67,18 +62,9 @@ {% endfor %}
-
-{% comment %} -
- {% if new_snapshot_url %} - - {% endif %} {% if snapshots_url %} - +

{% endif %}
-{% endcomment %} diff --git a/nummi/main/templates/main/table/transaction.html b/nummi/main/templates/main/table/transaction.html index 227becc..7a3fe0f 100644 --- a/nummi/main/templates/main/table/transaction.html +++ b/nummi/main/templates/main/table/transaction.html @@ -6,12 +6,7 @@ {% translate "New transaction" %}

{% endif %} - {% if transactions_url %} -

- {% translate "View all transactions" %} -

- {% endif %} - +
@@ -82,23 +77,9 @@ {% endfor %}
- -{% comment %} -
- {% if new_transaction_url %} - - {% endif %} - {% for trans in transactions %} -
- {{ trans.description }} -
- {% endfor %} {% if transactions_url %} - +

{% endif %}
-{% endcomment %}