{% extends "base.html" %}

{% block content %}

{% if paint_logout %}
  {% if attributes %}
    <p>You have the following attributes:</p>
    <table class="table table-striped">
      <thead>
        <th>Name</th><th>Values</th>
      </thead>
      <tbody>
        {% for attr, i in attributes %}
            {% if i == 0 %}
                <tr><td>{{ attr }}</td>
                <td><ul class="list-unstyled">
            {% end %}
            {% if i == 1 %}
                {% for val in attr %}
                    <li>{{ val }}</li>
                {% end %}
            {% end %}
            </ul></td></tr>
        {% end %}
      </tbody>
    </table>
  {% else %}
    <div class="alert alert-danger" role="alert">You don't have any attributes</div>
  {% end %}
  <a href="/?slo" class="btn btn-danger">Logout</a>
{% else %}
  <a href="/?sso2" class="btn btn-primary">Login and access again to this page</a>
{% end %}

{% end %}
