{% for n in noticias %} {% if n.traduccion_id %} {% set detalle_url = url_for('noticia.noticia', tr_id=n.traduccion_id) %} {% else %} {% set detalle_url = url_for('noticia.noticia', id=n.id) %} {% endif %}
{% if n.imagen_url %} {{ n.titulo }} {% else %}
{% endif %}
{{ n.fuente_nombre }} {% if n.fecha %} • {{ n.fecha|format_date }}{% endif %} {% if n.pais %} • {{ n.pais }}{% endif %}

{% if use_tr and n.tiene_traduccion %} {{ n.titulo_traducido }} {% else %} {{ n.titulo_original or n.titulo }} {% endif %}

{% if use_tr and n.tiene_traduccion %} {{ (n.resumen_traducido or '') | striptags | truncate(200) }} {% else %} {{ (n.resumen_original or n.resumen) | striptags | truncate(200) }} {% endif %}
{% else %}

No hay noticias para mostrar.

{% endfor %} {# Pagination Logic #} {% if total_pages and total_pages > 1 %}
{% set current = page %} {% if current > 1 %} {% endif %} Page {{ current }} of {{ total_pages }} {% if current < total_pages %} {% endif %}
{% endif %}