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 %} -