Rounding to less than four places just doesn't make sense

This commit is contained in:
Kumi 2021-05-02 14:26:49 +02:00
parent 184db5a597
commit 418ca7f076

View file

@ -22,14 +22,14 @@
{% for server in servers %} {% for server in servers %}
<tr> <tr>
<td>{{ server.name }}</td> <td>{{ server.name }}</td>
<td data-order="{{ server.price }}"><span title="€ {{ server.price }}">€ {{ server.price | round(2) }}</span></td> <td>€ {{ server.price }}</span></td>
<td>{{ server.datacenter }}</td> <td>{{ server.datacenter }}</td>
<td><span title="{{ server.cpu.count }} x {{ server.cpu.name }}">{{ server.cpu.benchmark }}</span></td> <td><span title="{{ server.cpu.count }} x {{ server.cpu.name }}">{{ server.cpu.benchmark }}</span></td>
<td data-order="{{ server.price_per_cpu }}"><span title="€ {{ server.price_per_cpu }}">€ {{ server.price_per_cpu | round(2) }}</span></td> <td data-order="{{ server.price_per_cpu }}"><span title="€ {{ server.price_per_cpu }}">€ {{ server.price_per_cpu | round(4) }}</span></td>
<td>{{ server.ram }} GB</td> <td>{{ server.ram }} GB</td>
<td data-order="{{ server.price_per_ram }}"><span title="€ {{ server.price_per_ram }}">€ {{ server.price_per_ram | round(2) }}</span></td> <td data-order="{{ server.price_per_ram }}"><span title="€ {{ server.price_per_ram }}">€ {{ server.price_per_ram | round(4) }}</span></td>
<td data-order="{{ server.hdd.total_size }}"><span title="{{ server.hdd.total_size }} GB">{{ server.hdd.count }} x {{ server.hdd.size }} GB</span></td> <td data-order="{{ server.hdd.total_size }}"><span title="{{ server.hdd.total_size }} GB">{{ server.hdd.count }} x {{ server.hdd.size }} GB</span></td>
<td data-order="{{ server.price_per_hdd }}"><span title="€ {{ server.price_per_hdd }}">€ {{ server.price_per_hdd | round(2) }}</span></td> <td data-order="{{ server.price_per_hdd }}"><span title="€ {{ server.price_per_hdd }}">€ {{ server.price_per_hdd | round(4) }}</span></td>
<td>{{ server.freetext }}</td> <td>{{ server.freetext }}</td>
<td> <td>
<form class="order" action="https://robot.your-server.de/order/marketConfirm" method="POST" target="_blank"> <form class="order" action="https://robot.your-server.de/order/marketConfirm" method="POST" target="_blank">