24 lines
1.5 KiB
HTML
24 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr" dir="ltr">
|
|
<head>
|
|
<div th:replace="~{html-head}"/>
|
|
<link rel="stylesheet" th:href="@{/css/grid.css}"/>
|
|
<script th:src="@{/js/jquery-4.0.0.min.js}" type="text/javascript"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/sockjs-client/1.6.1/sockjs.min.js" integrity="sha512-1QvjE7BtotQjkq8PxLeF6P46gEpBRXuskzIVgjFpekzFVF4yjRgrQvTG1MTOJ3yQgvTteKAcO7DSZI92+u/yZw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/stomp.js/2.3.3/stomp.min.js" integrity="sha512-iKDtgDyTHjAitUDdLljGhenhPwrbBfqTKWO1mkhSFH3A7blITC9MhYon6SjnMhp4o0rADGw9yAC6EW4t5a4K3g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
<script th:src="@{/js/grid.js}" type="text/javascript"></script>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<ul>
|
|
<li th:each="world : ${worlds}">
|
|
<!-- TODO remove this duplication of World span -->
|
|
<span th:if="${world.locked}"> World <span th:text="${world.name}"/> </span>
|
|
<a th:if="!${world.locked}" th:href="@{/game/{gid}/grid/{wname}?player={player}(gid=${game.id},wname=${world.name},player=${player})}">World <span th:text="${world.name}"/></a>
|
|
<a th:if="!${world.locked}" th:href="@{/game/{gid}/reset/{wname}?player={player}(gid=${game.id},wname=${world.name},player=${player})}">reset</a>
|
|
<span th:if="${world.won}">Gagné !</span>
|
|
</li>
|
|
</ul>
|
|
</main>
|
|
</body>
|
|
</html> |