Remove invalid conditional class.

chosenTeam doesn't exist on the front page.

Change-Id: I453392bd3e6c60c588571792c0585c5a4d843065
Improve date display in front schedule.

Include the day and month since the matches are spread over two days.
Ideally, I'd put separators between the periods, but I've not worked
out how to do this yet.

Change-Id: I9b7eb4d94c5c57fa79561d5a8b5f540f79e5dca7
Keep the previous match on the front page schedule.

Highlight the current match if there is one, and use the next match
as the key to which ones to show. This allows us to keep the previous
match on display for context. It also resolves a bug where the
schedule would show matches 0-9 if there wasn't a current match (as
was the case between periods).

Change-Id: I5ea2d1542a048e40833a7f3311aa49e5c6635fc5
Make it possible to hide old matches in the schedule.

This adds a checkbox to the schedule page allowing the user to
hide old matches. We define old matches as those which started more
than 15 minutes ago. To allow the preference to persist, we store
the value of the checkbox in a cookie (and load it when the page
loads). Default this to on as most users aren't going to care about
the older matches.

Change-Id: Ie58f29365d33f467529bf4d62fc05c4fc7c04708
Improve knockout page wording.

I'm not sure why I thought that the knockout matches would be pre-
seeded, but they're not. Remove the comments about that and instead
link the user back to the match schedule.

Change-Id: I5e8ee6b31760bfc0eab28755089790dbb5d964cb
Add a description to the schedule page.

This provides an overview of the competition schedule, as well as
highlighting the two views of the knockouts. Also remove the now
invalid 'League' comment from the heading.

Change-Id: I75a4e7722d3fe554d4d0b9d506b871e71c15e983
Remove redundant duplicate effort.

Change-Id: I8ea668f02a548302f2a1355ef53639f57ec813ad
Avoid issues from empty input.

Change-Id: I5f8913eeffcfe544db82bb280dae47013083f36c
Remove redundant id which didn't work anyway.

Change-Id: I44fc35a616d8808f51daf341fc83f33b0d359e0c
Extract ensure_whole_arena helper.

This will also be useful in the knockouts handling.

Change-Id: I256dd03d2b2b468d548605f5b83efaec27edd215
Remove some redundant CSS.

The width of these boxes is set by the fixed-with list elements they
contain, so having an overall width is redundant and restricts things.

Change-Id: I1b9655f0e7a72b5f57d40526486d8c1ac19543f2
Improve the knockouts layout

Add a new 'match' layer of separation in each round, as distinct
from a 'game'. A match is a collection of games which occur at the
same time. A game is something which occurs only in a single arena.

This makes styling the matches simpler, as we can now address them
as a single html entity. It also makes it much easier to think about
the things being displayed.

Change-Id: I3ecc338b8688eb1490f81b1eebfd1f45dd15fb67
Also highlight the current match in the knockouts

There doesn't seem to be a reason not to do this.

Change-Id: I778c95d457802b488451f32ecfa0ae81e664ae4e
Remove TODO which is no longer valid.

The line doesn't exist any more because all the teams are in the
knockout anyway.

Change-Id: Ic41ae9c001ad3177d707e6a6079ecd3d7e9260ea
Additional useful links on the event page.

To the list of all teams, the match schedule, league status and
knockout pages.

Change-Id: I024c09682ecdbd64b5db0a768338fb7c53ca0acb
Avoid warning about known missing teams.

The empty corner team and the unknowable team are both known cases.
There's no point filling the logs with them.

Change-Id: I4bade7d5910ace4799b3a83febfe3232be049d02
Extract resources out from the front page controller.

This allows the controller logic to just be about it and not need
to worry about the resource handling. It also means that we can
share the resources between controllers, and also tweak their internals
more easily.

Change-Id: I013c7156b379a10eeaaa84cbad8f92e61181e30b
Use new constant rather than local literal.

Change-Id: I6a455c7691335a03444438f56b7c200f549f4794
Rename angular knockouts controller for clarity.

This avoids clashes with the resource I'm about to add of the same
name.

Change-Id: Ia99e415c06f2ab46467fb47674ea33744bd6a5db
Extract resources from the rest of the competition pages.

This includes some slightly more interesting handling of a couple
of the resources, since we don't know the full urls upfront. This
also deals with them not being quite the right shape to use angular's
usuall handling for that.

Change-Id: Ib01d0ce4f3d9ea39011e4abf26f15f9cc965e5d0