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