diff --git a/app/controllers/Video.scala b/app/controllers/Video.scala index dad3e0175a..ffa5a7a3e0 100644 --- a/app/controllers/Video.scala +++ b/app/controllers/Video.scala @@ -24,7 +24,7 @@ object Video extends LilaController { } private def renderIndex(control: UserControl)(implicit ctx: Context) = - env.api.video.byTags(control.filter.tags, 15) map { videos => + env.api.video.byTags(control.filter.tags, getInt("page") | 1) map { videos => Ok(html.video.index(videos, control)) } @@ -50,7 +50,7 @@ object Video extends LilaController { def author(author: String) = Open { implicit ctx => WithUserControl { control => - env.api.video byAuthor author map { videos => + env.api.video.byAuthor(author, getInt("page") | 1) map { videos => Ok(html.video.author(author, videos, control)) } } diff --git a/app/views/video/author.scala.html b/app/views/video/author.scala.html index b2b3c86750..74548cfbe5 100644 --- a/app/views/video/author.scala.html +++ b/app/views/video/author.scala.html @@ -1,4 +1,4 @@ -@(author: String, videos: List[lila.video.Video], control: lila.video.UserControl)(implicit ctx: Context) +@(author: String, videos: Paginator[lila.video.Video], control: lila.video.UserControl)(implicit ctx: Context) @layout( title = s"$author • Free Chess Videos", @@ -7,12 +7,17 @@ control = control) {
+ All videos are free for everyone. Click one or many tags on the left to filter. +
+} +