gonito/templates/default-layout.hamlet

15 lines
645 B
Plaintext
Raw Normal View History

2015-08-29 07:23:34 +02:00
<div id="heading">
$maybe user <- maybeUser
_{MsgLoggedAs} #{userIdent $ entityVal user}
2015-11-11 13:25:09 +01:00
\ | <a href="@{HomeR}">_{MsgHome}</a>
2015-11-11 13:28:34 +01:00
$if userIsAdmin $ entityVal user
\ | <a href="@{CreateChallengeR}">_{MsgCreateChallenge}</a>
2015-09-04 23:23:32 +02:00
\ | <a href="@{ListChallengesR}">_{MsgListChallenges}</a>
2015-09-30 20:15:33 +02:00
\ | <a href="@{YourAccountR}">_{MsgYourAccount}</a>
2015-08-29 07:23:34 +02:00
\ | <a href="@{AuthR LogoutR}">_{MsgLogOut}</a>
$nothing
<a href="@{AuthR LoginR}">_{MsgLogIn}</a>
2015-08-20 22:33:38 +02:00
$maybe msg <- mmsg
2015-11-11 13:25:09 +01:00
<div #message .alert .alert-warning><a href="#" class="close" data-dismiss="alert">&times;</a> #{msg}
2015-08-20 22:33:38 +02:00
^{widget}