aboutsummaryrefslogtreecommitdiffstats
path: root/src/views/league.mustache
diff options
context:
space:
mode:
authorsadbeast <sadbeast@sadbeast.com>2024-06-23 15:36:59 -0700
committersadbeast <sadbeast@sadbeast.com>2024-07-13 21:58:23 -0700
commit8d018d996c1eddb882dc64ebbd228bb0135944f3 (patch)
treed01956546a77dbae33357c9a5d174f511ac9b282 /src/views/league.mustache
downloadteamdraft-8d018d996c1eddb882dc64ebbd228bb0135944f3.tar.gz
teamdraft-8d018d996c1eddb882dc64ebbd228bb0135944f3.tar.bz2
Diffstat (limited to 'src/views/league.mustache')
-rw-r--r--src/views/league.mustache36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/views/league.mustache b/src/views/league.mustache
new file mode 100644
index 0000000..46af60a
--- /dev/null
+++ b/src/views/league.mustache
@@ -0,0 +1,36 @@
+<h1>{{league.name}}</h1>
+<div class="grid">
+ {{#player_scores}}
+ <div><strong>{{player}} - {{score}}</strong></div>
+ {{/player_scores}}
+</div>
+<main class="container">
+<table class="striped">
+ <thead>
+ <tr>
+ <th scope="col">Team</th>
+ <th scope="col">Player</th>
+ <th scope="col" style="width: 11em">Total</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{#scores}}
+ <tr>
+ <td scope="row">{{team}}</td>
+ <td>{{player}}</td>
+ <td>
+ <a href="#">{{total}}</a>
+ <p>
+ <small><strong>Wins:</strong> {{win}}
+ {{#playoffs}}, <strong>Made the Playoffs:</strong> {{.}}{{/playoffs}}
+ {{#divisional}}, <strong>Made the Divisional Round:</strong> {{.}}{{/divisional}}
+ {{#conference}}, <strong>Made the Conference Championship:</strong> {{.}}{{/conference}}
+ {{#champion}}, <strong>Superbowl Winner:</strong> {{.}}{{/champion}}
+ </small>
+ </p>
+ </td>
+ </tr>
+ {{/scores}}
+ </tbody>
+</table>
+</main>