{% 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 %}
{% endfor %}
{% else %}
No hi ha notícies per mostrar
{% endif %}
{{ noticia.contingut | safe }}
{% if user.is_authenticated %}
{% if profileDataProfile.picture %}
{% else %}
{% endif %}
{% else %}
{{ profileDataProfile.num_fotos }}
{{ profileDataProfile.num_videos }}
{{ profileDataProfile.num_comentaris }}
{{ profileDataProfile.num_noticies }}
{{ user.username }}
{{ user.fname }} {{ user.lname }}
Nou usuari?
Connecta't
{% endif %}