fix puzzle rating used out of context

pull/3138/head
Niklas Fiekas 2017-06-07 09:17:11 +02:00
parent 1b4615b7fe
commit d7fa773a0f
3 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,7 @@
<div class="ratings">
@lila.rating.PerfType.nonPuzzle.map { perfType =>
<div class="@perfType.key">
@trans.ratingX(Html(s"""<strong data-icon="${perfType.iconChar}">${me.perfs(perfType.key).map(_.intRating).getOrElse("?")}</strong> ${perfType.name}"""))
@trans.perfRatingX(Html(s"""<strong data-icon="${perfType.iconChar}">${me.perfs(perfType.key).map(_.intRating).getOrElse("?")}</strong> ${perfType.name}"""))
</div>
}
</div>

View File

@ -523,6 +523,7 @@ val `error.max` = new Translated("error.max")
val `custom` = new Translated("custom")
val `notifications` = new Translated("notifications")
val `challenges` = new Translated("challenges")
val `perfRatingX` = new Translated("perfRatingX")
val `nbPlayers` = new Translated("nbPlayers")
val `nbGames` = new Translated("nbGames")
val `nbBookmarks` = new Translated("nbBookmarks")

View File

@ -609,4 +609,5 @@
<string name="custom">Custom</string>
<string name="notifications">Notifications</string>
<string name="challenges">Challenges</string>
<string name="perfRatingX">Rating: %s</string>
</resources>