From bd591594e72b38baa684c396c35e9d56ad43ef43 Mon Sep 17 00:00:00 2001 From: samuel-p Date: Sun, 13 Jun 2021 02:17:25 +0200 Subject: [PATCH] added table container --- src/_includes/donations-current.html | 71 ++++++++++++++-------------- src/_includes/donations.html | 70 ++++++++++++++------------- src/_includes/expenses-current.html | 68 +++++++++++++------------- src/scss/main.scss | 4 ++ 4 files changed, 111 insertions(+), 102 deletions(-) diff --git a/src/_includes/donations-current.html b/src/_includes/donations-current.html index 30ed4b5..cf9dc75 100644 --- a/src/_includes/donations-current.html +++ b/src/_includes/donations-current.html @@ -1,35 +1,36 @@ -{{locale}} - - - - - - - - - - - {% for donation in donations[0].donations %} - - - {% if donation.via == 'opencollective' %} - - {% else %} - - {% endif %} - {% if donation.from %} - - {% else %} - - {% endif %} - - - {% endfor %} - - - - - - - -
{{strings.date[locale]}}{{strings.via[locale]}}{{strings.from[locale]}}{{strings.amount[locale]}}
{{donation.date}}Open Collective{{strings[donation.via][locale]}}{{donation.from}}***{{donation.amount | amount}} €
{{strings.total[locale]}}{{donations[0].donations | sum | amount}} €
+
+ + + + + + + + + + + {% for donation in donations[0].donations %} + + + {% if donation.via == 'opencollective' %} + + {% else %} + + {% endif %} + {% if donation.from %} + + {% else %} + + {% endif %} + + + {% endfor %} + + + + + + + +
{{strings.date[locale]}}{{strings.via[locale]}}{{strings.from[locale]}}{{strings.amount[locale]}}
{{donation.date}}Open Collective{{strings[donation.via][locale]}}{{donation.from}}***{{donation.amount | amount}} €
{{strings.total[locale]}}{{donations[0].donations | sum | amount}} €
+
diff --git a/src/_includes/donations.html b/src/_includes/donations.html index 295f4a7..7887454 100644 --- a/src/_includes/donations.html +++ b/src/_includes/donations.html @@ -1,38 +1,40 @@ {% for year in donations %}

{{year.year}}

- - - - - - - - - - - {% for donation in year.donations %} - - - {% if donation.via == 'opencollective' %} - - {% else %} - - {% endif %} - {% if donation.from %} - - {% else %} - - {% endif %} - - - {% endfor %} - - - - - - - -
{{strings.date[locale]}}{{strings.via[locale]}}{{strings.from[locale]}}{{strings.amount[locale]}}
{{donation.date}}Open Collective{{strings[donation.via][locale]}}{{donation.from}}***{{donation.amount | amount}} €
{{strings.total[locale]}}{{year.donations | sum | amount}} €
+
+ + + + + + + + + + + {% for donation in year.donations %} + + + {% if donation.via == 'opencollective' %} + + {% else %} + + {% endif %} + {% if donation.from %} + + {% else %} + + {% endif %} + + + {% endfor %} + + + + + + + +
{{strings.date[locale]}}{{strings.via[locale]}}{{strings.from[locale]}}{{strings.amount[locale]}}
{{donation.date}}Open Collective{{strings[donation.via][locale]}}{{donation.from}}***{{donation.amount | amount}} €
{{strings.total[locale]}}{{year.donations | sum | amount}} €
+
{% endfor %} diff --git a/src/_includes/expenses-current.html b/src/_includes/expenses-current.html index ba6c5fd..542e1b9 100644 --- a/src/_includes/expenses-current.html +++ b/src/_includes/expenses-current.html @@ -1,33 +1,35 @@ - - - - - - - - - - - - {% for expense in expenses %} - - {% if expense.name[locale] %} - - {% else %} - - {% endif %} - - - - - - {% endfor %} - - - - - - - - -
{{strings.name[locale]}}{{strings.type[locale]}}{{strings.provider[locale]}}{{strings.amount[locale]}} / {{strings.month[locale]}}{{strings.amount[locale]}} / {{strings.year[locale]}}
{{expense.name[locale]}}{{expense.name}}{{expense.type}}{{expense.provider}}{{expense.amount | amount}} €{{expense.amount | year | amount}} €
{{strings.total[locale]}}{{expenses | sum | amount}} €{{expenses | sum | year | amount}} €
+
+ + + + + + + + + + + + {% for expense in expenses %} + + {% if expense.name[locale] %} + + {% else %} + + {% endif %} + + + + + + {% endfor %} + + + + + + + + +
{{strings.name[locale]}}{{strings.type[locale]}}{{strings.provider[locale]}}{{strings.amount[locale]}} / {{strings.month[locale]}}{{strings.amount[locale]}} / {{strings.year[locale]}}
{{expense.name[locale]}}{{expense.name}}{{expense.type}}{{expense.provider}}{{expense.amount | amount}} €{{expense.amount | year | amount}} €
{{strings.total[locale]}}{{expenses | sum | amount}} €{{expenses | sum | year | amount}} €
+
diff --git a/src/scss/main.scss b/src/scss/main.scss index 07512ef..56717ef 100644 --- a/src/scss/main.scss +++ b/src/scss/main.scss @@ -270,6 +270,10 @@ pre { } } +.table-container { + overflow-y: auto; +} + table.table { width: 100%; margin-bottom: 16px;