Provide clean numbers for DT to sort by

This commit is contained in:
Kumi 2021-05-03 07:14:39 +02:00
parent 418ca7f076
commit b7f682badb

View file

@ -22,11 +22,11 @@
{% for server in servers %} {% for server in servers %}
<tr> <tr>
<td>{{ server.name }}</td> <td>{{ server.name }}</td>
<td>€ {{ server.price }}</span></td> <td data-order="{{ server.price }}">€ {{ 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(4) }}</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 data-order="{{ server.ram }}">{{ server.ram }} GB</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.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(4) }}</span></td> <td data-order="{{ server.price_per_hdd }}"><span title="€ {{ server.price_per_hdd }}">€ {{ server.price_per_hdd | round(4) }}</span></td>