21 lines
735 B
HTML
21 lines
735 B
HTML
|
{% extends "base.html" %}
|
||
|
{% from "_helpers.html" import render_field, render_submit %}
|
||
|
|
||
|
{% macro render_metric(title, value, live=True) %}
|
||
|
<div class="col-md-4">
|
||
|
<div class="well text-center">
|
||
|
<p class="text-muted">{{ title }}</p>
|
||
|
<h1>{{ value }}</h1>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endmacro %}
|
||
|
|
||
|
{% block content %}
|
||
|
<h1 class="page-header">Statystyki</h1>
|
||
|
<div class="row">
|
||
|
{{ render_metric('Ilość przyłbic wyprodukowanych w ciągu ostatnich 24h', sztanca_last_24h) }}
|
||
|
{{ render_metric('Aktualna ilość produkowanych przyłbic na minutę', "%.2f"|format(sztanca_ppm|float)) }}
|
||
|
{{ render_metric('Ilość dostarczonych przyłbic', delivered_total, live=False) }}
|
||
|
</div>
|
||
|
{% endblock %}
|