- .col-sm-12.col-md-10.col-md-offset-1.col-lg-8.col-lg-offset-2
- .button-group
- button(@click="gdisplay='live'") Live games
- button(@click="gdisplay='corr'") Correspondance games
- GameList(v-show="gdisplay=='live'" :games="liveGames"
- @show-game="showGame")
- GameList(v-show="gdisplay=='corr'" :games="corrGames"
- @show-game="showGame")
+ .col-sm-12.col-md-5.col-md-offset-1.col-lg-4.col-lg-offset-2
+ .collapse
+ input#challengeSection(type="radio" checked aria-hidden="true" name="accordion")
+ label(for="challengeSection" aria-hidden="true") Challenges
+ div
+ .button-group
+ button(@click="cdisplay='live'") Live Challenges
+ button(@click="cdisplay='corr'") Correspondance challenges
+ ChallengeList(v-show="cdisplay=='live'"
+ :challenges="filterChallenges('live')" @click-challenge="clickChallenge")
+ ChallengeList(v-show="cdisplay=='corr'"
+ :challenges="filterChallenges('corr')" @click-challenge="clickChallenge")
+ input#peopleSection(type="radio" checked aria-hidden="true" name="accordion")
+ label(for="peopleSection" aria-hidden="true") People
+ div
+ #players(v-show="pdisplay=='players'")
+ h3 Online players
+ .player(v-for="p in uniquePlayers" @click="tryChallenge(p)"
+ :class="{anonymous: !!p.count}"
+ )
+ | {{ p.name + (!!p.count ? " ("+p.count+")" : "") }}
+ #chat(v-show="pdisplay=='chat'")
+ h3 Chat (TODO)
+ input#gameSection(type="radio" checked aria-hidden="true" name="accordion")
+ label(for="gameSection" aria-hidden="true") Games
+ div
+ .button-group
+ button(@click="gdisplay='live'") Live games
+ button(@click="gdisplay='corr'") Correspondance games
+ GameList(v-show="gdisplay=='live'" :games="filterGames('live')"
+ @show-game="showGame")
+ GameList(v-show="gdisplay=='corr'" :games="filterGames('corr')"
+ @show-game="showGame")