mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-18 11:11:38 +03:00
Customize the page titles
This commit is contained in:
parent
d0cff1a4f6
commit
2b0b78f8e0
@ -185,7 +185,7 @@ view model =
|
||||
Routes.Doodad doodad ->
|
||||
case findExampleByName doodad of
|
||||
Just example ->
|
||||
{ title = "Style Guide"
|
||||
{ title = example.name ++ " in the NoRedInk Style Guide"
|
||||
, body =
|
||||
viewExample model example
|
||||
|> Html.map (UpdateModuleStates example.name)
|
||||
@ -193,17 +193,17 @@ view model =
|
||||
}
|
||||
|
||||
Nothing ->
|
||||
{ title = "Style Guide"
|
||||
{ title = "Not found in the NoRedInk Style Guide"
|
||||
, body = toBody notFound
|
||||
}
|
||||
|
||||
Routes.Category category ->
|
||||
{ title = "Style Guide"
|
||||
{ title = Category.forDisplay category ++ " Category in the NoRedInk Style Guide"
|
||||
, body = toBody (viewCategory model category)
|
||||
}
|
||||
|
||||
Routes.All ->
|
||||
{ title = "Style Guide"
|
||||
{ title = "NoRedInk Style Guide"
|
||||
, body = toBody (viewAll model)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user