Skip to content

Commit

Permalink
Fix years dropdown (bug introduced in #55)
Browse files Browse the repository at this point in the history
  • Loading branch information
v6ak committed Oct 12, 2023
1 parent bcb6150 commit 5b97e2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/main/scala/com/v6ak/zbdb/Renderer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ final class Renderer private(participantTable: ParticipantTable, processingError

private def yearSelection = dropdownGroup(Seq[Frag](year, " ", span(cls:="caret")))(
yearLinksOption match{
case Some(yearLinks) => yearLinks.reverse.map{case (y, yearLink) => a(href:=yearLink)(y)}
case Some(yearLinks) => yearLinks.reverse.map{case (y, yearLink) =>
a(`class`:="dropdown-item", href:=yearLink)(y)
}
case None => span(cls:="badge bg-danger")("Ročníky nejsou k dispozici.")
}
)
Expand Down

0 comments on commit 5b97e2a

Please sign in to comment.