Files
veille-tech-aggregator/app/templates/admin/log.ejs
T
2026-10-25 20:05:12 +01:00

47 lines
1.6 KiB
Plaintext

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Journal d'activité - Administration</title>
<link rel="stylesheet" href="/css/admin.css">
</head>
<body>
<header class="admin-header">
<div class="container">
<h1>Administration - Veille Tech</h1>
<nav class="admin-nav">
<a href="/admin">Tableau de bord</a>
<a href="/admin/sources">Sources</a>
<a href="/admin/log" class="active">Journal</a>
<a href="/admin/logout" class="logout">Déconnexion</a>
</nav>
</div>
</header>
<main class="container">
<h2>Journal d'activité (100 dernières entrées)</h2>
<table class="log-table">
<thead>
<tr>
<th>Date</th>
<th>Action</th>
<th>Article ID</th>
<th>Détails</th>
</tr>
</thead>
<tbody>
<% logs.forEach(log => { %>
<tr>
<td><%= log.created_at %></td>
<td><span class="badge badge-<%= log.action %>"><%= log.action %></span></td>
<td><%= log.article_id ? log.article_id.substring(0, 8) + '...' : '-' %></td>
<td><%= log.details || '-' %></td>
</tr>
<% }); %>
</tbody>
</table>
</main>
</body>
</html>