diff --git a/resources/twig/categories/show.twig b/resources/twig/categories/show.twig index 88803214ca..ca4f09bfe8 100644 --- a/resources/twig/categories/show.twig +++ b/resources/twig/categories/show.twig @@ -50,31 +50,33 @@
- {% for entry in entries %} -
- -
- - {% if entry[2] != 0 %} - - - - - {% endif %} - {% if entry[3] != 0 %} - - - - - {% endif %} -
{{ 'spent'|_ }}{{ entry[2]|formatAmount }}
{{ 'earned'|_ }}{{ entry[3]|formatAmount }}
-
-
+ {% for entry in entries %} + {% if entry[2] != 0 or entry[3] != 0 %} +
+ +
+ + {% if entry[2] != 0 %} + + + + + {% endif %} + {% if entry[3] != 0 %} + + + + + {% endif %} +
{{ 'spent'|_ }}{{ entry[2]|formatAmount }}
{{ 'earned'|_ }}{{ entry[3]|formatAmount }}
+
+
+ {% endif %} - {% endfor %} + {% endfor %}