{% extends "base_settings_page.html" %}
{% block content %}

<table class="table table-hover" style="max-width: 600px;" aria-describedby="Account details">
    <tbody>
    <tr>
        <th scope="row">User ID</th>
        <td>{{ p.user.uid.0 }}</td>
    </tr>
    <tr>
        <th scope="row">First name</th>
        <td>{{ p.user.first_name }}</td>
    </tr>
    <tr>
        <th scope="row">Last name</th>
        <td>{{ p.user.last_name }}</td>
    </tr>
    <tr>
        <th scope="row">Username</th>
        <td>{{ p.user.username }}</td>
    </tr>
    <tr>
        <th scope="row">Email</th>
        <td>{{ p.user.email }}</td>
    </tr>
    <tr>
        <th scope="row">Account type</th>
        <td>{% if p.user.admin %}Admin{% else %}Regular user{% endif %}</td>
    </tr>
    </tbody>
</table>

<p>Your IP address: {{ remote_ip }}</p>

{% endblock content %}