summaryrefslogtreecommitdiff
path: root/rust/templates
diff options
context:
space:
mode:
authorArnaud Bailly <arnaud.bailly@iohk.io>2024-10-10 08:16:44 +0200
committerArnaud Bailly <arnaud.bailly@iohk.io>2024-10-10 08:16:44 +0200
commit492a9e7ae1b50bd2e46daf589a6e52388703ec7e (patch)
treed4eb6370f2bfb3bc57392463c30a196ae910a151 /rust/templates
parente3fdf12d472b24a9a91a0bdebe667b86797b2483 (diff)
downloadlambda-nantes-492a9e7ae1b50bd2e46daf589a6e52388703ec7e.tar.gz
Render leaderboard template from clients data
Diffstat (limited to 'rust/templates')
-rw-r--r--rust/templates/leaderboard.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/rust/templates/leaderboard.html b/rust/templates/leaderboard.html
new file mode 100644
index 0000000..f062323
--- /dev/null
+++ b/rust/templates/leaderboard.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+ <title>Leaderboard</title>
+</head>
+
+<body>
+ <table>
+ <tr><th>Name</th><th>Grade</th></tr>
+ {{#each this.clients}}
+ <tr><td>{{this.name}}</td><td>{{this.grade}}</td></tr>
+ {{/each}}
+ </table>
+</body>
+</html>