[TASK] add current place to stats
This commit is contained in:
parent
d139bf9a60
commit
3923ba9f8b
@ -11,7 +11,7 @@
|
||||
<div class="mt-3">
|
||||
<div class="bg-gray-200 p-3 mt-4 rounded-t-md">
|
||||
<label for="name" class="sr-only">Suche</label>
|
||||
<input type="search" name="name" id="filter-js" class="w-full relative block rounded-md border-0 py-1.5 px-2 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6 mb-2 md:mb-0" placeholder="Suchen nach...">
|
||||
<input type="search" name="name" id="filter-js" class="w-full relative block rounded-md border-0 py-1.5 px-2 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-primary-600 sm:text-sm sm:leading-6 mb-2 md:mb-0" placeholder="Suchen nach Bootsname oder Ruderer...">
|
||||
</div>
|
||||
|
||||
<div id="filter-result-js" class="bg-gray-200 text-primary-950 pb-3 px-3 text-right"></div>
|
||||
|
@ -7,11 +7,14 @@
|
||||
|
||||
<div class="max-w-screen-lg w-full">
|
||||
<h1 class="h1">Statistik</h1>
|
||||
<ol class="mt-3">
|
||||
<ol class="mt-3 border-r border-l">
|
||||
{% set_global km = 0 %}
|
||||
{% for s in stat %}
|
||||
<li class="{% if loop.index % 2 == 0 %} bg-gray-200 {% else %} bg-white {% endif %} flex justify-between px-3 py-1">
|
||||
<li class="border-t {% if loop.last %} border-b {% endif %} bg-white flex justify-between px-3 py-1">
|
||||
<span>{% if km != s.rowed_km %}{{loop.index}}{% else %} - {% endif %}</span>
|
||||
<span>{{s.name}}</span>
|
||||
<span>{{s.rowed_km}} km</span>
|
||||
{% set_global km = s.rowed_km %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
|
Loading…
Reference in New Issue
Block a user