63 lines
2.5 KiB
HTML
63 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="es">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{% block title %}Agregador de Noticias RSS{% endblock %}</title>
|
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<a href="{{ url_for('home') }}" style="text-decoration:none;">
|
|
<h1>Noticias</h1>
|
|
</a>
|
|
|
|
<nav class="main-nav">
|
|
<a href="{{ url_for('home') }}" class="nav-link">Noticias</a>
|
|
<a href="{{ url_for('dashboard') }}" class="nav-link">Dashboard</a>
|
|
<a href="{{ url_for('manage_feeds') }}" class="nav-link">Gestionar Feeds</a>
|
|
<a href="{{ url_for('manage_urls') }}" class="nav-link">Gestionar URLs</a>
|
|
</nav>
|
|
</header>
|
|
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
<ul class="flash-messages">
|
|
{% for category, message in messages %}
|
|
<li class="{{ category }}">{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
|
|
<script>
|
|
document.addEventListener('click', function(event) {
|
|
if (event.target.classList.contains('ver-mas-btn')) {
|
|
const container = event.target.closest('.resumen-container');
|
|
const corto = container.querySelector('.resumen-corto');
|
|
const completo = container.querySelector('.resumen-completo');
|
|
|
|
if (completo.style.display === 'none') {
|
|
corto.style.display = 'none';
|
|
completo.style.display = 'block';
|
|
event.target.textContent = 'Ver menos';
|
|
} else {
|
|
corto.style.display = 'block';
|
|
completo.style.display = 'none';
|
|
event.target.textContent = 'Ver más';
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|