yammat/templates/select.hamlet

27 lines
653 B
Text

$doctype 5
<div .header>
<ul>
<li>
_{MsgCurrentCharge (userBalance user) (appCurrency $ appSettings master)}
<li>
<a href=@{RechargeR uId}>
_{MsgRecharge}
<li>
<a href=@{ModifyUserR uId}>
_{MsgEditUser}
<h3>_{MsgChoosePrompt $ userIdent user}
$if null beverages
<h1>
!!!MATEKALYPSE!!!
$forall (Entity bId bev) <- beverages
<article .article>
$if beverageAvatar bev /= Nothing
<a href=@{BuyR uId bId} style="background-image: url(@{GetAvatarR $ fromJust $ beverageAvatar bev})">
<p>#{beverageIdent bev}
$else
<a href=@{BuyR uId bId}>
<p>#{beverageIdent bev}