remove "rated game result" info from user profile
This commit is contained in:
parent
64b352433d
commit
bfd181f8d6
|
@ -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,
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -244,4 +244,3 @@ boardEditor=Board editor
|
|||
startPosition=Start position
|
||||
clearBoard=Clear board
|
||||
savePosition=Save position
|
||||
ratedGameResult=Rated game result
|
||||
|
|
Loading…
Reference in a new issue