Change tables with more items to show
This commit is contained in:
parent
64b5b22def
commit
c210e91fff
3 changed files with 14 additions and 44 deletions
|
@ -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%;
|
||||
}
|
||||
|
|
|
@ -1,17 +1,12 @@
|
|||
{% load main_extras %}
|
||||
{% load i18n %}
|
||||
{% if new_snapshot_url %}
|
||||
<div id="snapshots">
|
||||
{% 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">
|
||||
<table class="full-width">
|
||||
{% endif %}
|
||||
<table class="full-width {% if snapshots_url %}more{% endif %}">
|
||||
<colgroup>
|
||||
<col class="icon" span="2">
|
||||
<col class="date">
|
||||
|
@ -67,18 +62,9 @@
|
|||
{% endfor %}
|
||||
</tbody>
|
||||
</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 %}
|
||||
<div class="full-line">
|
||||
<p>
|
||||
<a href="{{ snapshots_url }}">{% translate "View all statements" %}</a>
|
||||
</div>
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endcomment %}
|
||||
|
|
|
@ -6,12 +6,7 @@
|
|||
<a href="{{ new_transaction_url }}">{% translate "New transaction" %}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
{% if transactions_url %}
|
||||
<p>
|
||||
<a href="{{ transactions_url }}">{% translate "View all transactions" %}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
<table class="full-width">
|
||||
<table class="full-width {% if transactions_url %}more{% endif %}">
|
||||
<colgroup>
|
||||
<col class="icon">
|
||||
<col class="date">
|
||||
|
@ -82,23 +77,9 @@
|
|||
{% endfor %}
|
||||
</tbody>
|
||||
</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 %}
|
||||
<div class="full-line">
|
||||
<p>
|
||||
<a href="{{ transactions_url }}">{% translate "View all transactions" %}</a>
|
||||
</div>
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endcomment %}
|
||||
|
|
Loading…
Reference in a new issue