filter displayed simuls

pull/6349/head
Thibault Duplessis 2020-04-07 13:37:46 -05:00
parent 53d44ea2ac
commit 83be784bd0
2 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,7 @@ object bits {
span(cls := "more")(trans.more(), " »")
),
div(id := "enterable_simuls", cls := "enterable_list lobby__box__content")(
views.html.simul.bits.allCreated(simuls)
views.html.simul.bits.allCreated(simuls.filter(_.visible))
)
)
)

View File

@ -125,6 +125,9 @@ case class Simul(
private def Created(s: => Simul): Simul = if (isCreated) s else this
def visible =
(hostRating >= 2000 || hostTitle.isDefined) && isCreated
def spotlightable =
(hostRating >= 2400 || hostTitle.isDefined) &&
isCreated &&