54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>
|
|
Liste des modeles
|
|
</title>
|
|
|
|
<%- include('partials/links.ejs') %>
|
|
</head>
|
|
|
|
<body>
|
|
<%- include('partials/header.ejs') %>
|
|
<main>
|
|
<h1>
|
|
Liste des modeles
|
|
</h1>
|
|
|
|
<div class="table">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Id modèle</th>
|
|
<th>Nom modèle</th>
|
|
<th>Proposé par</th>
|
|
<th>Avis</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% models.forEach(function(model) { %>
|
|
<tr>
|
|
<td><%=model.id%></td>
|
|
<td><%=model.name%></td>
|
|
<td><a href="/membres/byid/<%=model.creator.id_member%>"><i class="fa-solid fa-user"></i> <%=model.creator.name%></a></td>
|
|
<td><%=model.review.first%>/5 (<%=model.review.second%> avis)</td>
|
|
<td><a href="/models/byname/<%=model.name%>"><i class="fa-solid fa-eye"></i></a></td>
|
|
</tr>
|
|
|
|
<% }); %>
|
|
|
|
</tbody>
|
|
</table>
|
|
<div class="box"></div>
|
|
</div>
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</html>
|