{% extends "base.html" %} {% block title %} {% set d = dato if dato is defined else (r if r is defined else None) %} {% if d %} {{ d.titulo_trad or d.titulo_orig or d.titulo_traducido or d.titulo_original or 'Detalle de Noticia' }} {% else %} Detalle de Noticia {% endif %} {% endblock %} {% block content %} {% set d = dato if dato is defined else (r if r is defined else None) %} {% if not d %}

No se encontró la noticia solicitada.

{% else %}

{{ d.titulo_trad or d.titulo_orig or d.titulo_traducido or d.titulo_original }} {% if d.lang_to %}{{ d.lang_to|upper }}{% endif %}

{% if d.fuente_url or d.url %}
Ver fuente
{% endif %}
{% set fecha_ = d.fecha %} {% if fecha_ %} {% if fecha_ is string %}{{ fecha_ }}{% else %}{{ fecha_.strftime('%d-%m-%Y %H:%M') }}{% endif %} {% endif %} {% if d.fuente_nombre %} | {{ d.fuente_nombre }}{% endif %} {% if d.categoria %} | {{ d.categoria }}{% endif %} {% if d.pais %} | {{ d.pais }}{% endif %}
{% if d.resumen_trad or d.cuerpo_traducido %}

Resumen (traducido)

{{ (d.resumen_trad or d.cuerpo_traducido)|safe_html }}

{% endif %} {% if d.resumen_orig or d.cuerpo_original or d.resumen or d.titulo_original %}

Resumen (original)

{{ (d.resumen_orig or d.cuerpo_original or d.resumen)|safe_html }}
{% endif %} {% if tags is defined and tags and tags|length %}
{% for t in tags %} {# t puede ser DictRow (t['valor']) o tupla (t.0) #} {% set valor = t.valor if t.valor is defined else (t[0] if t[0] is defined else '') %} {% set tipo = t.tipo if t.tipo is defined else (t[1] if t[1] is defined else '') %} {{ valor }} {% endfor %}
{% endif %}
{% set rels = relacionadas if relacionadas is defined else None %} {% if rels and rels|length %}

Noticias relacionadas

{% endif %} {% endif %} {% endblock %}