{% extends "idios/base.html" %}

{% load i18n %}
{% load account_tags %}

{% block head_title %}{% user_display page_user as page_user_display %}{% blocktrans %}Profile for {{ page_user_display }}{% endblocktrans %}{% endblock %}

{% block body %}
    {% user_display page_user as page_user_display %}
    
    <h1>{% blocktrans %}Profile for {{ page_user_display }}{% endblocktrans %}</h1>
    
    {% include "profiles/_profile_info.html" %}
    
    {% if is_me %}
        <p><a id="edit-profile-box" href="{% url profile_edit %}" class="btn">Edit profile</a></p>
    {% endif %}
{% endblock %}

{% block extra_body %}
    <script>
        $(function() {
            $("#edit-profile-box").modal({
                backdrop: true
            });
        });
    </script>
{% endblock %}