{% extends "layout.html" %}

{% block content %}
    <h1>Wszystkie Serwery</h1>
    <div class="server-table">
        <table border="1">
            <thead>
                <tr>
                    <th>Nazwa</th>
                    <th>Status</th>
                </tr>
            </thead>
            <tbody>
                {% for server in servers %}
                <tr>
                    <td>{{ server.name }}</td>
                    <td>{{ server.status }}</td>
                </tr>
                {% else %}
                <tr>
                    <td colspan="2">Nie znaleziono serwerów</td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
{% endblock %}
