Mark direct paired games in comms

Clean up title.
pull/3596/head
Isaac Levy 2017-09-12 16:50:51 -04:00
parent d99edb3aef
commit 87c1d43b79
2 changed files with 4 additions and 1 deletions

View File

@ -71,7 +71,9 @@ side = side.some) {
case (pov, chat) => {
<div class="game">
<a class="title" href="@routes.Round.player(pov.fullId)">
vs @usernameOrAnon(pov.opponent.userId) @momentFromNow(pov.game.movedAt)
@if(pov.game.fromFriend) {
<strong>[F]</strong>
} @usernameOrAnon(pov.opponent.userId) @momentFromNow(pov.game.movedAt)
</a>
<div class="chat">
@chat.lines.map { line =>

View File

@ -440,6 +440,7 @@ case class Game(
def fromPool = source contains Source.Pool
def fromLobby = source contains Source.Lobby
def fromFriend = source contains Source.Friend
def winner = players find (_.wins)