Skip to content

Commit 520614b

Browse files
committed
Show transaction tags
1 parent 3e36318 commit 520614b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

thebook/bookkeeping/templates/bookkeeping/transactions.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,12 @@ <h5 class="m-0 font-weight-bold">
173173
<td {% if transaction.amount < 0 %}class="text-danger"{% endif %}>
174174
{{ transaction.amount|money }}
175175
</td>
176-
<td>{{ transaction.description }}</td>
176+
<td>
177+
{{ transaction.description }}
178+
{% for tag in transaction.tags.all %}
179+
<span class="badge badge-primary">{{ tag }}</span>&nbsp;
180+
{% endfor %}
181+
</td>
177182
<td>{{ transaction.category }}</td>
178183
<td style="display: block; text-align: center;">
179184
<a href="{% url 'admin:bookkeeping_transaction_change' transaction.id %}">

0 commit comments

Comments
 (0)