diff --git a/k4ever/main/templates/main/product_list.html b/k4ever/main/templates/main/product_list.html index bbdb3b2..9d3ffc9 100644 --- a/k4ever/main/templates/main/product_list.html +++ b/k4ever/main/templates/main/product_list.html @@ -1,5 +1,5 @@ {% if buyables %} - +
{% for buyable in buyables %} @@ -9,13 +9,13 @@ diff --git a/k4ever/main/templates/main/startpage.html b/k4ever/main/templates/main/startpage.html index c0c2040..2068a53 100644 --- a/k4ever/main/templates/main/startpage.html +++ b/k4ever/main/templates/main/startpage.html @@ -2,7 +2,7 @@ {% block "content" %} {% if allMostDrinks or allMostSnacks %} -
{{ buyable.buyable__name }} {% if buyable.num_buys %}({{ buyable.num_buys }} mal gekauft){% endif %} {% if buyable.buyable__deposit > 0 %} - - + {{ buyable.buyable__price|floatformat:2 }}€ + {{ buyable.buyable__price|floatformat:2 }} € / {{ buyable.buyable__deposit|floatformat:2 }}€ {% if includeDeposit %} - + {{ buyable.buyable__deposit|floatformat:2 }}€ {% endif %} {% else %} - + {{ buyable.buyable__price|floatformat:2 }}€ {% endif %}
+
@@ -14,25 +14,25 @@ - - - - + - - -
 
Getränke + {% include "main/product_list.html" with buyables=allMostDrinks %} + {% include "main/product_list.html" with buyables=usersMostDrinks %} + {% include "main/product_list.html" with buyables=usersLastDrinks %}
Snacks + {% include "main/product_list.html" with buyables=allMostSnacks %} + {% include "main/product_list.html" with buyables=usersMostSnacks %} + {% include "main/product_list.html" with buyables=usersLastSnacks %}