eidolon/templates/adminUserAlbums.hamlet
2015-01-11 20:06:44 +01:00

17 lines
578 B
Text

$newline always
<div id="header" class="item" data-width="400">
<div class="inner">
<h1>Albums of #{userSlug owner}
<p>
$if null albums
#{userSlug owner} has no albums yet
$forall (Entity aId a) <- albums
<article class="item" data-width=#{albumSampleWidth a}>
<a href=@{AdminAlbumSettingsR aId}>#{albumTitle a}
<figure class="thumbnail">
$if (albumSamplePic a) == Nothing
<img src="/static/img/album.jpg">
$else
<img src=#{T.pack $ fromJust $ albumSamplePic a}>
<figcaption>#{albumTitle a}