Only show more button if timeline exists

pull/5404/head
Adam Morris 2019-08-07 19:36:39 +10:00
parent e311ae8c30
commit 433c01b052
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ object home {
ctx.blind option h2("Timeline"),
views.html.timeline entries userTimeline,
// userTimeline.size >= 8 option
a(cls := "more", href := routes.Timeline.home)(trans.more(), " »")
(userTimeline.size > 0) option a(cls := "more", href := routes.Timeline.home)(trans.more(), " »")
)
} getOrElse div(cls := "about-side")(
ctx.blind option h2("About"),