Swiss round page is not an infiniteScroll page
fix https://github.com/ornicar/lila/issues/10209 Could not testdeepcrayonfish^2
parent
cfc3534de7
commit
6e99139e50
|
@ -83,8 +83,7 @@ object show {
|
|||
def round(s: Swiss, r: SwissRound.Number, pairings: Paginator[SwissPairing])(implicit ctx: Context) =
|
||||
views.html.base.layout(
|
||||
title = s"${fullName(s)} • Round $r/${s.round}",
|
||||
moreCss = cssTag("swiss.show"),
|
||||
moreJs = infiniteScrollTag
|
||||
moreCss = cssTag("swiss.show")
|
||||
) {
|
||||
val pager = views.html.base.bits
|
||||
.pagination(p => routes.Swiss.round(s.id.value, p).url, r.value, s.round.value, showPost = true)
|
||||
|
@ -95,7 +94,6 @@ object show {
|
|||
),
|
||||
pager(cls := "pagination--top"),
|
||||
table(cls := "slist slist-pad")(
|
||||
tbody(cls := "infinite-scroll")(
|
||||
pairings.currentPageResults map { p =>
|
||||
tr(cls := "paginated")(
|
||||
td(a(href := routes.Round.watcher(p.gameId, "white"), cls := "glpt")(s"#${p.gameId}")),
|
||||
|
@ -104,9 +102,7 @@ object show {
|
|||
td(p strResultOf chess.Black),
|
||||
td(userIdLink(p.black.some))
|
||||
)
|
||||
},
|
||||
pagerNextTable(pairings, p => routes.Swiss.round(s.id.value, r.value).url)
|
||||
)
|
||||
}
|
||||
),
|
||||
pager(cls := "pagination--bottom")
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue