From 8ac636186cf5f704264e7473864c54b3edaf4049 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 21 Nov 2022 21:39:17 +0100 Subject: Added basic games handling --- views/games.ejs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 views/games.ejs (limited to 'views/games.ejs') diff --git a/views/games.ejs b/views/games.ejs new file mode 100644 index 0000000..3189be8 --- /dev/null +++ b/views/games.ejs @@ -0,0 +1,17 @@ +<%- include("header") %> +<% if (Object.keys(games).length === 0) { %> +

Aucune partie en cours

+<% } else { %> +

Liste des parties en cours

+ + + <% games.forEach((game) => { %> + + + + + + <% }) %> +
PartieJoueur 1Joueur 2
<%= game.data.title %><%= game.data.player1.name %><%= game.data.player2.name %>
+<% } %> +<%- include("footer") %> -- cgit v1.2.3