From e2d32c79bb7fe7bcf135488ca7622850ad2ab132 Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Fri, 8 Nov 2024 10:42:46 +0000 Subject: [PATCH] Mejora en el aspecto del detalle de la noticia --- .../templates/detalle_noticia.html | 14 ++-- .../gestion_reservas/templates/index.html | 70 ++++++++++++------- 2 files changed, 52 insertions(+), 32 deletions(-) diff --git a/JugarAlPadel/gestion_reservas/templates/detalle_noticia.html b/JugarAlPadel/gestion_reservas/templates/detalle_noticia.html index 09298b8..d9e2fec 100644 --- a/JugarAlPadel/gestion_reservas/templates/detalle_noticia.html +++ b/JugarAlPadel/gestion_reservas/templates/detalle_noticia.html @@ -2,13 +2,15 @@ {% block content %}
-
-

{{ noticia.titulo }}

-
-

{{ noticia.contenido }}

-

Publicado el {{ noticia.fecha_publicacion|date:"d M Y" }} por {{ noticia.autor }}

+

{{ noticia.titulo }}

+
+
+
+

{{ noticia.contenido }}

+

Publicado el {{ noticia.fecha_publicacion|date:"d M Y" }} por {{ noticia.autor }}

+
- Volver a noticias
+ Volver a noticias
{% endblock %} diff --git a/JugarAlPadel/gestion_reservas/templates/index.html b/JugarAlPadel/gestion_reservas/templates/index.html index f78fcc2..018c62f 100644 --- a/JugarAlPadel/gestion_reservas/templates/index.html +++ b/JugarAlPadel/gestion_reservas/templates/index.html @@ -7,33 +7,51 @@ {% block content %}
- -

Introducción

- - +
+
+
+

Noticias

+
+
+
+ + + {% for noticia in noticias %} +
+
+
+
+ +
+ +
+ +

{{ noticia.titulo }}

+ +
    +
  • {{ noticia.fecha_publicacion|date:"d M Y" }}
  • +
  • |
  • +
  • {{ noticia.autor.nombre }}
  • +
+
+
+
+ + +
+

{{ noticia.contenido|truncatewords:20 }}

+
+ + +
+ {% empty %} +

No hay noticias disponibles.

+ {% endfor %}
{% endblock %}