remove "rated game result" info from user profile

This commit is contained in:
Thibault Duplessis 2013-07-21 23:14:27 +02:00
parent 64b352433d
commit bfd181f8d6
3 changed files with 0 additions and 16 deletions

View file

@ -14,7 +14,6 @@ case class UserInfo(
nbPlaying: Int,
confrontation: Option[(Int, Int, Int)],
nbBookmark: Int,
eloWithMe: Option[List[(String, Int)]],
eloChart: Option[EloChart],
nbFollowing: Int,
nbFollowers: Int,
@ -58,12 +57,6 @@ object UserInfo {
nbPlaying = ~nbPlaying,
confrontation = confrontation,
nbBookmark = nbBookmark,
eloWithMe = ctx.me.filter(user !=) map { me
List(
"win" -> eloCalculator.diff(me, user, Color.White.some),
"draw" -> eloCalculator.diff(me, user, None),
"loss" -> eloCalculator.diff(me, user, Color.Black.some))
},
eloChart = eloChart,
nbFollowing = nbFollowing,
nbFollowers = nbFollowers,

View file

@ -110,14 +110,6 @@ evenMoreCss = evenMoreCss) {
<div class="engine_warning">@trans.thisPlayerUsesChessComputerAssistance()</div>
}
@bio
@info.eloWithMe.map { eloWithMe =>
<div class="elo_with_me boxed_data">
@trans.ratedGameResult()<br />
@eloWithMe.map { e =>
@e._1.capitalize: <strong>@showNumber(e._2)</strong>
}
</div>
}
@info.confrontation.map {
case (w, d, l) => {
<div class="confrontation boxed_data">

View file

@ -244,4 +244,3 @@ boardEditor=Board editor
startPosition=Start position
clearBoard=Clear board
savePosition=Save position
ratedGameResult=Rated game result