gonito/templates/default-layout.hamlet

11 lines
348 B
Plaintext

<div id="heading">
$maybe user <- maybeUser
_{MsgLoggedAs} #{userIdent $ entityVal user}
\ | <a href="@{CreateChallengeR}">_{MsgCreateChallenge}</a>
\ | <a href="@{AuthR LogoutR}">_{MsgLogOut}</a>
$nothing
<a href="@{AuthR LoginR}">_{MsgLogIn}</a>
$maybe msg <- mmsg
<div #message>#{msg}
^{widget}