{% extends 'base.html' %}


{% block title %}
    {% if title %}
        {{ title }} - IOT Database!
    {% else %}
        Welcome to IOT Database
    {% endif %}
{% endblock %}

{% block content_title %}
    Home Page
{% endblock %}

{% block content %}
    <h1>Hi, {{ current_user.username }}!</h1>
    <br>
    <h2>My devices</h2>
        {% for device in devices %}
            <div><p>{{ device.device_name }} {{ device.device_EUI }}</p></div>
        {% endfor %}
{% endblock %}
