hide broken tos wording in lichobile, tweak class name
parent
ab2671656c
commit
191fa97146
|
@ -155,7 +155,7 @@ trait GameHelper { self: I18nHelper with UserHelper with AiHelper with StringHel
|
|||
frag(" ", showRatingDiff(d))
|
||||
},
|
||||
engine option span(
|
||||
cls := "engine_mark",
|
||||
cls := "tos_violation",
|
||||
title := trans.thisAccountViolatedTos.txt()
|
||||
)
|
||||
),
|
||||
|
|
|
@ -194,12 +194,12 @@ object header {
|
|||
div(cls := "profile-side")(
|
||||
div(cls := "user-infos")(
|
||||
!ctx.is(u) option frag(
|
||||
u.marks.engine option div(cls := "warning engine_warning")(
|
||||
u.marks.engine option div(cls := "warning tos_warning")(
|
||||
span(dataIcon := "j", cls := "is4"),
|
||||
trans.thisAccountViolatedTos()
|
||||
),
|
||||
(u.marks.boost && (u.count.game > 0 || isGranted(_.Hunter))) option div(
|
||||
cls := "warning engine_warning"
|
||||
cls := "warning tos_warning"
|
||||
)(
|
||||
span(dataIcon := "j", cls := "is4"),
|
||||
trans.thisPlayerArtificiallyIncreasesTheirRating(),
|
||||
|
|
|
@ -22,7 +22,7 @@ final class JsonView(isOnline: lila.socket.IsOnline) {
|
|||
"createdAt" -> u.createdAt
|
||||
)
|
||||
.add("disabled" -> u.disabled)
|
||||
.add("engine" -> u.marks.engine)
|
||||
.add("tosViolation" -> u.marks.engine)
|
||||
.add("booster" -> u.marks.boost)
|
||||
.add("profile" -> u.profile.map(p => profileWrites.writes(p).noNull))
|
||||
.add("seenAt" -> u.seenAt)
|
||||
|
@ -41,7 +41,7 @@ final class JsonView(isOnline: lila.socket.IsOnline) {
|
|||
)
|
||||
.add("title" -> u.title)
|
||||
.add("disabled" -> u.disabled)
|
||||
.add("engine" -> u.marks.engine)
|
||||
.add("tosViolation" -> u.marks.engine)
|
||||
.add("booster" -> u.marks.boost)
|
||||
.add("language" -> u.lang)
|
||||
.add("profile" -> u.profile.flatMap(_.country).map { country =>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
.engine_warning {
|
||||
.tos_warning {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue