{% extends "base.html" %} {% block title %}{{ newsData.titol }}{% endblock %} {% load staticfiles %} {% block content %}
{{ newsData.titol }} {{ newsData.data|date:"j F Y" }} {{ newsData.data|date:"H:i O" }} {{ newsData.autor }} {{ newsData.categoria }} {{ newsData.comentari_set.count }} comentaris {% if newsData.geolatitud != 0 %} {{ newsData.localitzacio }} {% endif %}

{{ newsData.contingut | safe }}
{% if newsData.tags != '' %}
{{ newsData.tags }} {% endif %}
Puntuació actual: {{ newsData.puntuacio|floatformat:2 }} / 5.00
{% if user.is_authenticated %}
{% csrf_token %}
{% endif %}

{% if medias %}
{% for file in medias %} {% if file.isvideo %}
{% else %}
{% endif %} {% endfor %}
{% for file in medias %}
{% if file.isvideo %} {% else %} {% endif %}
{{ file.titol }}
{% endfor %}
{% endif %} {% if newsData.geolatitud != 0 %}
{% endif %}

Comentaris

{% if comentaris %} {% for comment in comentaris %} {% if user == comment.autor %}
{% if newsData.autor == comment.autor %}
{% else %}
{% endif %} {{ comment.autor }} {{ comment.data|date:"j F Y" }} {{ comment.data|date:"H:i O" }} #{{ forloop.revcounter }} {{ comment.contingut }}
{% if comment.autor.userprofile.picture %}
{% else %}
{% endif %} {% if newsData.autor == comment.autor %}
{% else %}
{% endif %}
{% else %}
{% if comment.autor.userprofile.picture %}
{% else %}
{% endif %} {% if newsData.autor == comment.autor %}
{% else %}
{% endif %} {{ comment.autor }} {{ comment.data|date:"j F Y" }} {{ comment.data|date:"H:i O" }} #{{ forloop.revcounter }} {{ comment.contingut }}
{% endif %} {% endfor %} {% else %} No hi ha comentaris per mostrar {% endif %}
{% if user.is_authenticated %}

Nou comentari

{% csrf_token %}

{% endif %}
{% endblock %}