From 6bd24af2ffbea91db1b10a5d5258980ce2068c7f Mon Sep 17 00:00:00 2001 From: sadbeast Date: Tue, 16 Jul 2024 18:16:29 -0700 Subject: let's go --- src/templates/draft.zmpl | 60 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 src/templates/draft.zmpl (limited to 'src/templates/draft.zmpl') diff --git a/src/templates/draft.zmpl b/src/templates/draft.zmpl new file mode 100644 index 0000000..8957b29 --- /dev/null +++ b/src/templates/draft.zmpl @@ -0,0 +1,60 @@ +@zig { +const can_pick = data.getPresence("can_pick"); + if (!data.getPresence("running")) { +
+ @html HTML + + HTML +

https://teamdraft.net/invite/{{.code}}

+ } +
+
+ if (data.getPresence("running")) { +
Round Time Remaining: {{.round_time_remaining}} + } +
{{.message}} +
+ if (zmpl.get("teams")) |teams| { +
+ + + + + + + + + for (teams.items(.array)) |team| { + const id = team.get("id"); + const rank = team.get("rank"); + const name = team.get("name"); + const picked: bool = team.getT(.boolean, "picked") orelse true; + const pick_user = team.get("pick_user"); + + + + + + } + +
TeamRank
{{name}}{{rank}} + {{pick_user}} + if (can_pick and !picked) { +
+ +
+ } +
+
+ } +} +
-- cgit v1.2.3