Actualización del 2025-08-16 a las 17:45:53

This commit is contained in:
jlimolina 2025-08-16 17:45:53 +02:00
parent b26e9ad87f
commit db6fa3d2c3
5 changed files with 232 additions and 165 deletions

View file

@ -11,11 +11,9 @@
<div class="noticia-meta">
<span><i class="far fa-calendar-alt"></i> {{ noticia.fecha.strftime('%d-%m-%Y %H:%M') if noticia.fecha else 'N/D' }}</span>
<!-- INICIO DE LA MODIFICACIÓN: Se añade la fuente de la noticia -->
{% if noticia.fuente_nombre %}
| <span><i class="fas fa-newspaper"></i> <strong>{{ noticia.fuente_nombre }}</strong></span>
{% endif %}
<!-- FIN DE LA MODIFICACIÓN -->
{% if noticia.categoria %}
| <span><i class="fas fa-tag"></i> {{ noticia.categoria }}</span>
@ -25,8 +23,19 @@
| <span><i class="fas fa-globe-americas"></i> {{ noticia.pais }}</span>
{% endif %}
</div>
<p>{{ noticia.resumen | safe_html | truncate(280) }}</p>
</div>
<div class="resumen-container">
<div class="resumen-corto">
{{ noticia.resumen | safe_html | truncate(280, True) }}
</div>
<div class="resumen-completo" style="display: none;">
{{ noticia.resumen | safe_html }}
</div>
{% if noticia.resumen|length > 280 %}
<button class="ver-mas-btn">Ver más</button>
{% endif %}
</div>
</div>
</li>
{% else %}
<li class="text-center p-4">
@ -34,4 +43,3 @@
</li>
{% endfor %}
</ul>