File tree Expand file tree Collapse file tree 5 files changed +30
-33
lines changed
components/tournament/details Expand file tree Collapse file tree 5 files changed +30
-33
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change 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 ],
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments