{% extends "base.html" %} {% block title %}{{ profileData.username }}{% endblock %} {% load staticfiles %} {% block content %}
{% if profileDataProfile.picture %}
{% else %}
{% endif %}
Fotos
{{ profileDataProfile.num_fotos }}
Vídeos
{{ profileDataProfile.num_videos }}
Comentaris
{{ profileDataProfile.num_comentaris }}
Notícies
{{ profileDataProfile.num_noticies }}
{{ profileData.username }} {{ profileData.first_name }} {{ profileData.last_name }}
{% if profileDataProfile.picture %}
{% else %}
{% endif %}
{% if noticies %} {% for noticia in noticies %}
{{ noticia.titol }} {% if noticia.media.all|length == 0 %}
{% elif noticia.media.all.0.isvideo %}
{% else %}
{% endif %} {{ noticia.data|date:"j F Y" }} {{ noticia.data|date:"H:i O" }} {{ noticia.autor }} {{ noticia.categoria }} {{ noticia.comentari_set.count }} comentaris {% if noticia.geolatitud != 0 %} {{ noticia.localitzacio }} {% endif %}
{{ noticia.contingut | safe }}
{% endfor %} {% else %} No hi ha notícies per mostrar {% endif %}
{{ profileDataProfile.biografia }} {{ profileDataProfile.website }} {{ profileDataProfile.localitzacio }} Registrat el {{ profileData.date_joined|date:"j F Y" }} {% if profileData.id == user.id %} ACTUALITZAR EL PERFIL {% endif %}

{% if medias %}
{% for file in medias %} {% if file.isvideo %}
{% else %}
{% endif %} {% endfor %}
{% for file in medias %}
{% if file.isvideo %} {% else %}
{{ file.noticia_set.all.0.titol }} {% endif %}
{{ file.titol }}
{% endfor %}
{% endif %}
{% endblock %}