forked from prometheus/alertmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Render page header aka nav bar with elm (prometheus#4)
This replaces the static nav bar specification in the index.html file.
- Loading branch information
1 parent
5e56d34
commit 0790930
Showing
3 changed files
with
30 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module NavBar.Views exposing (appHeader) | ||
|
||
import Html exposing (Html, header, text, a, nav) | ||
import Html.Attributes exposing (class, href, title) | ||
import Types exposing (Model, Msg) | ||
|
||
appHeader : Model -> Html Msg | ||
appHeader model = | ||
header [ class "bg-black-90 fixed w-100 ph3 pv3 pv4-ns ph4-m ph5-l" ] | ||
[ nav [ class "w-80 center f6 fw6 ttu tracked" ] | ||
[ a [ class "link dim white dib mr3", href "#", title "Home" ] | ||
[ text "AlertManager" ] | ||
, a [ class "link dim white dib mr3", href "#/alerts", title "Alerts" ] | ||
[ text "Alerts" ] | ||
, a [ class "link dim white dib mr3", href "#/silences", title "Silences" ] | ||
[ text "Silences" ] | ||
, a [ class "link dim white dib", href "#/status", title "Status" ] | ||
[ text "Status" ] | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters