From 4ea56f3247dce8076c680c5438a42a7808394454 Mon Sep 17 00:00:00 2001 From: jlimolina Date: Sun, 8 Jun 2025 22:01:14 +0000 Subject: [PATCH] =?UTF-8?q?Build:=20Versi=C3=B3n=20final=20estable=20y=20c?= =?UTF-8?q?on=20nuevo=20dise=C3=B1o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Aplicación completamente funcional con servidor Waitress. Solucionados todos los problemas de arranque y timeouts. Se ha implementado un nuevo diseño visual moderno en todas las plantillas. El script de instalación está actualizado y es robusto. --- templates/base.html | 309 +++++++++++++++------------------------- templates/noticias.html | 199 +++++++++++++------------- 2 files changed, 218 insertions(+), 290 deletions(-) mode change 100755 => 100644 templates/base.html mode change 100755 => 100644 templates/noticias.html diff --git a/templates/base.html b/templates/base.html old mode 100755 new mode 100644 index f82e57f..7710b9f --- a/templates/base.html +++ b/templates/base.html @@ -1,200 +1,123 @@ - - {% block title %}Noticias RSS{% endblock %} - - + + + {% block title %}Agregador de Noticias RSS{% endblock %} + + + + + + -
- {% block content %}{% endblock %} -
+
+ {% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} + + {% endif %} + {% endwith %} + + {% block content %}{% endblock %} +
- diff --git a/templates/noticias.html b/templates/noticias.html old mode 100755 new mode 100644 index 473805f..98d57ba --- a/templates/noticias.html +++ b/templates/noticias.html @@ -1,107 +1,112 @@ {% extends "base.html" %} + {% block title %}Últimas Noticias RSS{% endblock %} + {% block content %} -

Últimas Noticias Recopiladas

- ⚙️ Gestionar feeds RSS +
+

Agregador de Noticias

+

Tus fuentes de información, en un solo lugar.

+ ⚙️ Gestionar Feeds +
-
-
-
-
- - -
-
- - -
-
- - -
-
- -
-
- -
-
- -
-

Noticias recientes

- -
+ + - ← Volver a gestión de feeds +
+ {% for noticia in noticias %} +
+ {% if noticia.imagen_url %} +
+ {{ noticia.titulo }} +
+ {% endif %} +
+

{{ noticia.titulo }}

+
+ 🗓️ {{ noticia.fecha.strftime('%d-%m-%Y %H:%M') if noticia.fecha else 'Fecha no disponible' }} | + {{ noticia.categoria or 'N/A' }} | + {{ noticia.pais or 'Global' }} +
+

{{ noticia.resumen | striptags | safe_html | truncate(280) }}

+
+
+ {% else %} +
+

No hay noticias que mostrar con los filtros seleccionados.

+
+ {% endfor %} +
- + + // Ejecutamos la función una vez al cargar la página para inicializar el select de países + // según el continente que ya esté seleccionado. + document.addEventListener('DOMContentLoaded', filtrarPaises); + {% endblock %} -