{% extends 'social_layer/base.html' %}
{% load i18n %}
{% block content %}
    {% if request.user.is_staff %}
        <a href="{% url 'social_layer:admin_send_notification' sprofile.user.pk %}">
            {% trans 'send notification' %}
        </a>
        <br>
    {% endif %}
    {% if request.user == sprofile.user %}
        <a href="{% url 'social_layer:setup_profile' %}" rel="nofollow" class="float-right">
            {% trans 'edit' %}
        </a>
        <br>
    {% endif %}
    <div class="center">
        {% if sprofile.picture.media_thumbnail %}
            <img src="{{ sprofile.picture.media_thumbnail.url }}" style="height: 30vh; width: auto;"/>
        {% else %}
            <i class="fa fa-user fa-4x gray"></i>
        {% endif %}
        <br>
        <h1>{{sprofile.nick|default:'user' }}</h1>
        <br>
        <i>{{sprofile.phrase|default:'' }}</i>
        <hr>
    </div>
    <!--temporariamente aqui-->
    {% if list_ads %}
        <h2 class="hp">{% trans 'Ads' %}</h2>
        <div class="u-full-width">
            {% for item in list_ads %}
                {% include 'brique/ad_card.html' %}
            {% endfor %}
        </div>
        <hr>
    {% endif %}
    <!--fim temporario-->
    {% if comments %}
        <h2 class="hp">{% trans 'Comments' %}</h2>
        {% for comment in comments %}
            <a href="{{ comment.comment_section.get_url }}?show-comments#comment_{{ comment.id }}"
                rel="nofollow"
                style="font-weight: initial;">
                {% include 'comments/single_comment.html' %}
            </a>
        {% endfor %}
    {% endif %}
{% endblock content %}
