eidolon/templates/default-layout.hamlet
2014-08-18 18:19:12 +02:00

21 lines
436 B
Text

<nav>
<div id="top-nav">
<ul id="user-nav">
$maybe userId <- msu
Logged in as <a href=@{UserR username}>#{username}
<li>
<a href=@{LogoutR}>Logout
<li>
<a href=@{NewAlbumR}>Create album
<li>
<a href=@{UploadR}>Upload image
$nothing
<li>
<a href=@{LoginR}>Login
<li>
<a href=@{SignupR}>Signup
$maybe msg <- mmsg
<div #message>#{msg}
^{widget}