filter displayed simuls
parent
53d44ea2ac
commit
83be784bd0
|
@ -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))
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue