Enhance invoice display with improved CSS styling and update invoice links
Fix #47
This commit is contained in:
parent
a277b37526
commit
4974c30397
2 changed files with 12 additions and 1 deletions
|
@ -387,6 +387,9 @@ ul.invoices {
|
||||||
> * {
|
> * {
|
||||||
&.title {
|
&.title {
|
||||||
font-weight: 650;
|
font-weight: 650;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -423,6 +426,10 @@ ul.statements {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ul.invoices {
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
|
||||||
|
}
|
||||||
|
|
||||||
.statement-details {
|
.statement-details {
|
||||||
display: grid;
|
display: grid;
|
||||||
@media (width > 720px) {
|
@media (width > 720px) {
|
||||||
|
|
|
@ -3,7 +3,11 @@
|
||||||
<ul class="invoices">
|
<ul class="invoices">
|
||||||
{% for invoice in invoices %}
|
{% for invoice in invoices %}
|
||||||
<li>
|
<li>
|
||||||
{% if not transaction %}<span>{{ invoice.transaction.name }}</span>{% endif %}
|
{% if not transaction %}
|
||||||
|
<a class="transaction" href="{{ invoice.transaction.get_absolute_url }}">
|
||||||
|
{{ "receipt"|remix }}{{ invoice.transaction.name }}
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
<a class="title" href="{{ invoice.file.url }}">{{ "file"|remix }}{{ invoice.name }} [{{ invoice.file|extension }}]</a>
|
<a class="title" href="{{ invoice.file.url }}">{{ "file"|remix }}{{ invoice.name }} [{{ invoice.file|extension }}]</a>
|
||||||
{% if transaction %}
|
{% if transaction %}
|
||||||
<a href="{{ invoice.get_absolute_url }}">{{ "file-edit"|remix }}{% translate "Edit" %}</a>
|
<a href="{{ invoice.get_absolute_url }}">{{ "file-edit"|remix }}{% translate "Edit" %}</a>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue