Advertisement
STANAANDREY

example of thymeleaf

Jan 30th, 2022
1,245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.41 KB | None | 0 0
  1. <ul th:each="pastGame : ${pastGames}">
  2.         <li th:style="
  3.                ${(#strings.equals(pastGame.plUUIDs[0], session.loginUUID) && pastGame.scores[0] > pastGame.scores[1])
  4.                 ? 'color:green' : 'color:red'}
  5.              " th:text="'code: ' + ${pastGame.roomUUID}"
  6.              th:style=""
  7.             th:attr="onclick=|window.location.assign('/past-game/${pastGame.roomUUID}')|"></li>
  8.     </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement