better align team tournaments

This commit is contained in:
Thibault Duplessis 2020-04-24 19:15:53 -06:00
parent 2a245e4974
commit 3353118235
2 changed files with 4 additions and 6 deletions

View file

@ -116,10 +116,7 @@ object show {
h2(dataIcon := "g", cls := "text")(trans.tournaments()),
info.tournaments.span(_.isCreated) match {
case (created, started) =>
frag(
views.html.tournament.bits.forTeam(created.sortBy(_.startsAt)),
views.html.tournament.bits.forTeam(started)
)
views.html.tournament.bits.forTeam(started ::: created.sortBy(_.startsAt))
}
)
),

View file

@ -4,6 +4,7 @@ import lila.api.Context
import lila.app.templating.Environment._
import lila.app.ui.ScalatagsTemplate._
import lila.i18n.{ I18nKeys => trans }
import lila.tournament.Tournament
import controllers.routes
@ -23,7 +24,7 @@ object bits {
)
}
def enterable(tours: List[lila.tournament.Tournament]) =
def enterable(tours: List[Tournament]) =
table(cls := "tournaments")(
tours map { tour =>
tr(
@ -41,7 +42,7 @@ object bits {
}
)
def forTeam(tours: List[lila.tournament.Tournament])(implicit ctx: Context) =
def forTeam(tours: List[Tournament])(implicit ctx: Context) =
table(cls := "slist")(
tbody(
tours map { t =>