Files
cardio/templates/overview.html

42 lines
1.7 KiB
HTML

<h1
class="mb-4 text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl lg:text-6xl dark:text-white text-center">
{{last_cadence}} rpm</h1>
<h1
class="mb-4 text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl lg:text-6xl dark:text-white text-center">
{{power}} Watts</h1>
<h3 class="mb-4 text-3xl font-extrabold leading-none tracking-tight text-gray-700 md:text-3xl lg:text-3xl dark:text-white text-center">
{{duration}}</h3>
<div class="flex flex-col items-center">
<div>
{{graph_data|safe}}
</div>
<div class="relative overflow-x-auto">
<table class="lg:w-1/4 sm:w-full text-sm text-left text-gray-500 dark:text-gray-400">
<thead class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
<tr>
<th scope="col" class="px-6 py-3">
TimeStamp
</th>
<th scope="col" class="px-6 py-3">
RPM
</th>
</tr>
</thead>
<tbody>
{% for c in cadences|reverse %}
<tr class="bg-white border-b dark:bg-gray-800 dark:border-gray-700">
<th scope="row" class="px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white">
{{c['logged_at']}}
</th>
<td class="px-6 py-4">
{{c['rpm']}}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>