Show prices on start page, fix background color

This commit is contained in:
theresa 2011-10-15 01:39:06 +02:00
parent f7476ebf68
commit b62b6543e4
2 changed files with 13 additions and 13 deletions

View File

@ -1,5 +1,5 @@
{% if buyables %} {% if buyables %}
<table width=100%> <table width=100% class="showitem">
<tbody> <tbody>
{% for buyable in buyables %} {% for buyable in buyables %}
<tr> <tr>
@ -9,13 +9,13 @@
<td class="name"><span>{{ buyable.buyable__name }}</span> {% if buyable.num_buys %}({{ buyable.num_buys }} mal gekauft){% endif %}</td> <td class="name"><span>{{ buyable.buyable__name }}</span> {% if buyable.num_buys %}({{ buyable.num_buys }} mal gekauft){% endif %}</td>
<td class="actions"> <td class="actions">
{% if buyable.buyable__deposit > 0 %} {% if buyable.buyable__deposit > 0 %}
<a class="buyButton" href="/store/buy/{{ buyable.buyable__id }}" title="Kaufen (Ohne Pfand)"><span></span></a> <a class="buyButton includingPrice" href="/store/buy/{{ buyable.buyable__id }}" title="Kaufen (Ohne Pfand)"><span><span>{{ buyable.buyable__price|floatformat:2 }}€</span></span></a>
<a class="buyButton includingDeposit" href="/store/buy/{{ buyable.buyable__id }}/with/deposit" title="Kaufen (Mit Pfand)"><span></span></a> <a class="buyButton includingDeposit includingPrice" href="/store/buy/{{ buyable.buyable__id }}/with/deposit" title="Kaufen (Mit Pfand)"><span><span>{{ buyable.buyable__price|floatformat:2 }} € / {{ buyable.buyable__deposit|floatformat:2 }}€</span></span></a>
{% if includeDeposit %} {% if includeDeposit %}
<a class="buyButton onlyDeposit" href="/store/buy/{{ buyable.buyable__id }}/only/deposit" title="Kaufen (Nur Pfand)"><span></span></a> <a class="buyButton onlyDeposit" href="/store/buy/{{ buyable.buyable__id }}/only/deposit" title="Kaufen (Nur Pfand)"><span><span>{{ buyable.buyable__deposit|floatformat:2 }}€</span></span></a>
{% endif %} {% endif %}
{% else %} {% else %}
<a class="buyButton" href="/store/buy/{{ buyable.buyable__id }}" title="Kaufen"><span></span></a> <a class="buyButton" href="/store/buy/{{ buyable.buyable__id }}" title="Kaufen"><span><span>{{ buyable.buyable__price|floatformat:2 }}€</span></span></a>
{% endif %} {% endif %}
</td> </td>
</tr> </tr>

View File

@ -2,7 +2,7 @@
{% block "content" %} {% block "content" %}
{% if allMostDrinks or allMostSnacks %} {% if allMostDrinks or allMostSnacks %}
<table class="showitem"> <table style="border: 0 none; width:100%">
<thead> <thead>
<tr> <tr>
<td role="presentation">&nbsp;</td> <td role="presentation">&nbsp;</td>
@ -14,25 +14,25 @@
<tbody> <tbody>
<tr> <tr>
<th scope="row">Getränke</th> <th scope="row">Getränke</th>
<td> <td style="vertical-align:top">
{% include "main/product_list.html" with buyables=allMostDrinks %} {% include "main/product_list.html" with buyables=allMostDrinks %}
</td> </td>
<td> <td style="vertical-align:top">
{% include "main/product_list.html" with buyables=usersMostDrinks %} {% include "main/product_list.html" with buyables=usersMostDrinks %}
</td> </td>
<td> <td style="vertical-align:top">
{% include "main/product_list.html" with buyables=usersLastDrinks %} {% include "main/product_list.html" with buyables=usersLastDrinks %}
</td> </td>
</tr> </tr>
<tr> <tr style="border-top: 2px solid #ECECEC">
<th scope="row">Snacks</th> <th scope="row">Snacks</th>
<td> <td style="vertical-align.top">
{% include "main/product_list.html" with buyables=allMostSnacks %} {% include "main/product_list.html" with buyables=allMostSnacks %}
</td> </td>
<td> <td style="vertical-align:top">
{% include "main/product_list.html" with buyables=usersMostSnacks %} {% include "main/product_list.html" with buyables=usersMostSnacks %}
</td> </td>
<td> <td style="vertical-align:top">
{% include "main/product_list.html" with buyables=usersLastSnacks %} {% include "main/product_list.html" with buyables=usersLastSnacks %}
</td> </td>
</tr> </tr>