equal
deleted
inserted
replaced
8 def apply(cnt: iContent, st: ViewState): Option[TypedTag[String]] = |
8 def apply(cnt: iContent, st: ViewState): Option[TypedTag[String]] = |
9 st match { |
9 st match { |
10 case ViewCategory(c) => |
10 case ViewCategory(c) => |
11 val l = cnt.articlesByCategory(c) |
11 val l = cnt.articlesByCategory(c) |
12 Some(tags2.section( |
12 Some(tags2.section( |
13 ul(l.map(art => |
13 div(cls:="list-group", l.map(art => |
14 li(a(href:=s"/${http.prefix}/${art.pathSegment}", art.title)) |
14 a(href:=s"/${http.prefix}/${art.pathSegment}", |
|
15 cls:="list-group-item", art.title) |
15 )), |
16 )), |
16 if (l.isEmpty) "V této kategorii není ještě článek." else "" |
17 if (l.isEmpty) "V této kategorii není ještě článek." else "" |
17 )) |
18 )) |
18 case _ => None |
19 case _ => None |
19 } |
20 } |