Skip to content

Commit 0476a92

Browse files
authored
Merge branch 'deploy' into master
2 parents 76dc030 + de18102 commit 0476a92

File tree

5 files changed

+30
-33
lines changed

5 files changed

+30
-33
lines changed

public/components/tournament/details/details.stache

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,31 @@
1414
</tr>
1515
</thead>
1616
<tbody>
17-
18-
{{#games.getRoundsWithGames}}
19-
<tr>
20-
<td>{{.}}</td>
21-
{{#each courtNames}}
22-
<td>
23-
{{#games.getGameForRoundAndCourt ../. .}}
24-
<a href="{{routeUrl ( gameId=id )}}">
25-
{{#../teams.getById(homeTeamId)}}{{color}}{{/./teams@getById}}
26-
v
27-
{{#../teams.getById(awayTeamId)}}{{color}}{{/./teams@getById}}
28-
</a>
29-
{{#if isAdmin}}
30-
<button type="button" class="btn btn-danger btn-xs"
31-
on:click="deleteGame(.)"
32-
{{#isDestroying}}disabled{{/isDestroying}}>
33-
<span class='glyphicon glyphicon-remove'/>
34-
</button>
35-
{{/if}}
36-
{{/games.getGameForRoundAndCourt}}
37-
</td>
38-
{{/each}}
39-
</tr>
40-
{{else}}
41-
<tr><td class="text-center lead" colspan="5">No Games</td></tr>
42-
{{/games.getRoundsWithGames}}
17+
{{#each ~games.getRoundsWithGames()}}
18+
<tr>
19+
<td>{{.}}</td>
20+
{{#each courtNames}}
21+
<td>
22+
{{#games.getGameForRoundAndCourt(../.,.)}}
23+
<a href="{{routeUrl ( gameId=id )}}">
24+
{{#../teams.getById(homeTeamId)}}{{color}}{{/./teams@getById}}
25+
v
26+
{{#../teams.getById(awayTeamId)}}{{color}}{{/./teams@getById}}
27+
</a>
28+
{{#if isAdmin}}
29+
<button type="button" class="btn btn-danger btn-xs"
30+
($click)="deleteGame(.)"
31+
{{#isDestroying}}disabled{{/isDestroying}}>
32+
<span class='glyphicon glyphicon-remove'/>
33+
</button>
34+
{{/if}}
35+
{{/games.getGameForRoundAndCourt}}
36+
</td>
37+
{{/each}}
38+
</tr>
39+
{{else}}
40+
<tr><td class="text-center lead" colspan="5">No Games</td></tr>
41+
{{/each}}
4342
</tbody>
4443
</table>
4544

public/index.stache

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@
1313

1414
</div>
1515
{{#isProduction}}
16-
<script
17-
src="{{joinBase 'node_modules/steal/steal.production.js'}}"
18-
main="bitballs/index.stache!done-autorender">
19-
</script>
16+
<script src="{{joinBase 'steal.production.js'}}"></script>
2017
{{else}}
21-
<script src="/node_modules/steal/steal.js"></script>
18+
<script src="/node_modules/steal/steal.js" main="bitballs/index.stache!done-autorender"></script>
2219
{{/isProduction}}
2320
</body>
2421
</html>

public/models/fixtures/games.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const games = {
55
videoUrl: "AEUULIs_UWE",
66
homeTeamId: 1,
77
round: "Round 1",
8+
court: "1",
89
tournament: {
910
id: 1,
1011
date: "2012-01-01"

public/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"install": "node build.js",
99
"test": "rm -rf ~/.mozilla && DEBUG=testee:* testee test.html --browsers firefox --reporter Spec"
1010
},
11-
"main": "index.stache!done-autorender",
11+
"main": "bitballs/index.stache!done-autorender",
1212
"files": [
1313
"."
1414
],

public/prod.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<html>
22
<body>
3-
<script src="/node_modules/steal/steal.production.js" main="bitballs/index.stache!done-autorender"></script>
3+
<script src="/node_modules/steal/steal.js" env="production" main="bitballs/index.stache!done-autorender"></script>
44
</body>
55
</html>

0 commit comments

Comments
 (0)