add username in navbar

This commit is contained in:
flynn 2019-01-12 02:22:56 +01:00
parent 174b34e298
commit 3ea91cd11f
2 changed files with 15 additions and 10 deletions

View file

@ -22,12 +22,17 @@
</div>
<div id="navbarBasicExample" class="navbar-menu">
<!--
<div class="navbar-start">
<a class="navbar-item">
Home
</a>
<div class="navbar-start">
<div class="navbar-item">
{% if user %}
Hello User!
{% else %}
Please login to use the graph
{% endif %}
</div>
<!--
<a class="navbar-item">
Documentation
</a>
@ -53,12 +58,12 @@
</a>
</div>
</div>
</div>
-->
</div>
<div class="navbar-end">
<div class="navbar-item">
<div class="buttons">
<a class="button is-primary">
<a class="button is-info">
<strong>Sign up</strong>
</a>
<a class="button is-light">
@ -79,7 +84,7 @@
<div class="column">
<h3 class="title is-3">Little humans</h3>
<div>
<h3 class="subtitle is-3">Add human</h3>
<h3 class="subtitle is-4">Add human</h3>
<form action="/users" method="post">
{% csrf-field %}
<div class="field">
@ -122,7 +127,7 @@
<div class="column">
<h3 class="title is-3">Cozy cuddles</h3>
<div>
<h3 class="subtitle is-3">Add relation</h3>
<h3 class="subtitle is-4">Add cuddle</h3>
<form action="/relations" method="post">
{% csrf-field %}
<div class="field">

View file

@ -32,7 +32,7 @@
(GET "/" []
(let [users (get-users)
relations (get-relations)]
(home-page {:relations relations :users users})))
(home-page {:relations relations :users users :user {}})))
;(GET "/docs" []
; (-> (response/ok (-> "docs/docs.md" io/resource slurp))
; (response/header "Content-Type" "text/plain; charset=utf-8")))