eidolon/templates/default-layout.hamlet
2017-04-24 07:46:34 +02:00

46 lines
1.2 KiB
Text
Executable file

<nav>
<div .row>
<div .col-md-9 .col-sm-6>
<ul #user-nav>
<li>
<a href=@{HomeR}>
Home
$maybe username <- musername
<li>
<label for="cb1">
<a>
#{slug}<span class="caret"></span>
<input type="checkbox" #cb1 .vanish aria-hidden="true">
<ul>
<li>
<a href=@{UserR username}>
Your Profile
<li>
<a href=@{NewAlbumR}>
Create album
<li>
<a href=@{UploadR}>
Upload images
<li>
<a href=@{AuthR LogoutR}>
Logout
$if admin
<li>
<a href=@{AdminR} .red>
Administration
$nothing
<li>
<a href=@{AuthR LoginR}>
Login
$if block == False
<li>
<a href=@{AuthR newAccountR}>
Signup
<!--<div .col-md-3 .col-sm-6 #search>
^{pageBody searchWidget}-->
$maybe msg <- mmsg
<div #message>#{msg}
<div .reel role="main">
^{pageBody wc}