better align team tournaments
This commit is contained in:
parent
2a245e4974
commit
3353118235
|
@ -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))
|
||||
}
|
||||
)
|
||||
),
|
||||
|
|
|
@ -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 =>
|
||||
|
|
Loading…
Reference in a new issue