diff options
author | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-06-17 16:22:05 -0400 |
---|---|---|
committer | Kjetil Orbekk <kjetil.orbekk@gmail.com> | 2017-06-17 16:22:05 -0400 |
commit | 72844ca385bf7c503826cf6b684c8fa724973064 (patch) | |
tree | e539367acdd7f43539a4894e6df786e42712d85b /src/render | |
parent | 1ef1e9c309a187aaee3e736aef621b272cc805d8 (diff) |
ui: Add navigation bar (for login details).
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/mod.rs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/render/mod.rs b/src/render/mod.rs index 75fd9b5..3b63a68 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -12,7 +12,21 @@ fn render_in_page<'a>(content: Box<RenderBox + 'a>) -> String { link(rel="stylesheet", type="text/css", href="/static/main.css"); } body { - : content + nav { + ul { + li { + p { : "SystemHttpd" } + } + } + ul(class="right") { + li { + p { : "Login" } + } + } + } + main { + : content + } } } }).into_string().unwrap() |