<!-- extend from base layout -->
{% extends "base.html" %}

{% block content %}
    <h1>{{ user.nickname}}'s controls</h1>
    {% include 'flash.html' %}
    {% if user.get_last_control() %}
    <table class="table table-hover">
        <thead>
            <tr>
                <th>Date</th>
                {% for x in user.get_measurements() %}
                    <th>{{ x }}</th>
                {% endfor %}
                <th></th>
            </tr>
        </thead>
        <tbody>
        {% for controls in user.get_controls() %}
            {% include 'controls_row.html' %}
        {% endfor %}
        </tbody>
    </table>
    {% endif %}
{% endblock %}

<!-- extend from base layout -->
{% extends "base.html" %}

{% block content %}
    <h1>List of Controls</h1>
    {% include 'flash.html' %}
    {% if user.get_last_control() %}
    <table class="table table-hover">
        <thead>
            <tr>
                <th>Date</th>
                {% for x in user.get_measurements() %}
                    <th>{{ x }}</th>
                {% endfor %}
                <th></th>
            </tr>
        </thead>
        <tbody>
        {% for controls in user.get_controls() %}
            {% include 'controls_row.html' %}
        {% endfor %}
        </tbody>
    </table>
    {% endif %}
{% endblock %}

Change the name of the page
Change the name of the page
