{% extends "base.html" %} {% block title %}Inici{% endblock %} {% load staticfiles %} {% block content %}
{% 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 %}
{% if user.is_authenticated %}
{% if profileDataProfile.picture %}
{% else %}
{% endif %}
{{ profileDataProfile.num_fotos }}
{{ profileDataProfile.num_videos }}
{{ profileDataProfile.num_comentaris }}
{{ profileDataProfile.num_noticies }}
{{ user.username }} {{ user.fname }} {{ user.lname }}
{% else %}
Nou usuari? Connecta't
{% csrf_token %}

{% endif %}
{% endblock %}