Change tables with more items to show

This commit is contained in:
Edgar P. Burkhart 2023-04-18 15:27:14 +02:00
parent 64b5b22def
commit c210e91fff
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 14 additions and 44 deletions

View file

@ -1,6 +1,9 @@
table { table {
border-collapse: collapse; border-collapse: collapse;
} }
table.more tbody:last-child tr:last-child {
border-bottom: .1rem dashed var(--gray);
}
table.full-width { table.full-width {
width: 100%; width: 100%;
} }

View file

@ -1,17 +1,12 @@
{% load main_extras %} {% load main_extras %}
{% load i18n %} {% load i18n %}
{% if new_snapshot_url %}
<p>
<a href="{{ new_snapshot_url }}">{% translate "New statement" %}</a>
</p>
{% endif %}
{% if snapshots_url %}
<p>
<a href="{{ snapshots_url }}">{% translate "View all statements" %}</a>
</p>
{% endif %}
<div id="snapshots"> <div id="snapshots">
<table class="full-width"> {% if new_snapshot_url %}
<p>
<a href="{{ new_snapshot_url }}">{% translate "New statement" %}</a>
</p>
{% endif %}
<table class="full-width {% if snapshots_url %}more{% endif %}">
<colgroup> <colgroup>
<col class="icon" span="2"> <col class="icon" span="2">
<col class="date"> <col class="date">
@ -67,18 +62,9 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
</div>
{% comment %}
<div id="snapshots" class="table {% if account %}col2-4{% else %}col2-5{% endif %}">
{% if new_snapshot_url %}
<div class="full-line">
<a href="{{ new_snapshot_url }}">{% translate "New statement" %}</a>
</div>
{% endif %}
{% if snapshots_url %} {% if snapshots_url %}
<div class="full-line"> <p>
<a href="{{ snapshots_url }}">{% translate "View all statements" %}</a> <a href="{{ snapshots_url }}">{% translate "View all statements" %}</a>
</div> </p>
{% endif %} {% endif %}
</div> </div>
{% endcomment %}

View file

@ -6,12 +6,7 @@
<a href="{{ new_transaction_url }}">{% translate "New transaction" %}</a> <a href="{{ new_transaction_url }}">{% translate "New transaction" %}</a>
</p> </p>
{% endif %} {% endif %}
{% if transactions_url %} <table class="full-width {% if transactions_url %}more{% endif %}">
<p>
<a href="{{ transactions_url }}">{% translate "View all transactions" %}</a>
</p>
{% endif %}
<table class="full-width">
<colgroup> <colgroup>
<col class="icon"> <col class="icon">
<col class="date"> <col class="date">
@ -82,23 +77,9 @@
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
</div>
{% comment %}
<div id="transactions" class="table col1-{% if account or category %}6{% else %}7{% endif %}">
{% if new_transaction_url %}
<div class="full-line">
<a href="{{ new_transaction_url }}">{% translate "New transaction" %}</a>
</div>
{% endif %}
{% for trans in transactions %}
<div class="transaction">
<span class="description text">{{ trans.description }}</span>
</div>
{% endfor %}
{% if transactions_url %} {% if transactions_url %}
<div class="full-line"> <p>
<a href="{{ transactions_url }}">{% translate "View all transactions" %}</a> <a href="{{ transactions_url }}">{% translate "View all transactions" %}</a>
</div> </p>
{% endif %} {% endif %}
</div> </div>
{% endcomment %}