parent
08c5d997dc
commit
9b796191a5
|
@ -360,7 +360,12 @@ viewNavigationItem :
|
||||||
-> Html Msg
|
-> Html Msg
|
||||||
viewNavigationItem url ( path, title ) =
|
viewNavigationItem url ( path, title ) =
|
||||||
li
|
li
|
||||||
[ classList [ ( "active", path == url.path ) ] ]
|
[ classList
|
||||||
|
[ ( "active"
|
||||||
|
, String.startsWith url.path path
|
||||||
|
)
|
||||||
|
]
|
||||||
|
]
|
||||||
[ a [ href path ] [ text title ] ]
|
[ a [ href path ] [ text title ] ]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -45,6 +45,7 @@ import Html.Attributes
|
||||||
, classList
|
, classList
|
||||||
, href
|
, href
|
||||||
, id
|
, id
|
||||||
|
, placeholder
|
||||||
, type_
|
, type_
|
||||||
, value
|
, value
|
||||||
)
|
)
|
||||||
|
@ -748,6 +749,7 @@ view path title model viewSuccess outMsg =
|
||||||
, id "search-query-input"
|
, id "search-query-input"
|
||||||
, autocomplete False
|
, autocomplete False
|
||||||
, autofocus True
|
, autofocus True
|
||||||
|
, placeholder <| "Search for " ++ path
|
||||||
, onInput (\x -> outMsg (QueryInput x))
|
, onInput (\x -> outMsg (QueryInput x))
|
||||||
, value <| Maybe.withDefault "" model.query
|
, value <| Maybe.withDefault "" model.query
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue