{% extends "base.html" %}
{% load static %}

{% block title %}Select Identity{% endblock %}

{% block content %}
    {% include "identity/_identity_menu.html" %}
    <section class="icon-menu">
        {% for identity in identities %}
            <a class="option" href="{{ identity.urls.activate }}">
                {% if identity.icon_uri %}
                    <img src="{{ identity.icon_uri }}">
                {% else %}
                    <img src="{% static "img/unknown-icon-128.png" %}">
                {% endif %}
                <span class="handle">
                    {{ identity.name_or_handle }}
                    <small>@{{ identity.handle }}</small>
                </span>
            </a>
        {% empty %}
            <p class="option empty">You have no identities.</p>
        {% endfor %}
        <a href="/identity/create/" class="option new">
            <i class="fa-solid fa-plus"></i> Create a new identity
        </a>
    </section>
{% endblock %}
