eidolon/templates/adminUserAlbums.hamlet

17 lines
446 B
Plaintext
Raw Normal View History

2014-09-08 01:57:17 +00:00
$newline always
2016-09-02 13:55:50 +00:00
<div .subheader .item>
<h1>Albums of #{userSlug owner}
$if null albums
<p>
2016-09-02 13:55:50 +00:00
#{userSlug owner} has no albums yet
2014-09-08 01:57:17 +00:00
$forall (Entity aId a) <- albums
2016-09-02 13:55:50 +00:00
<div .item>
<a href=@{AdminAlbumSettingsR aId}>
<figure>
2015-01-11 19:06:44 +00:00
$if (albumSamplePic a) == Nothing
<img src="/static/img/album.jpg">
$else
<img src=#{T.pack $ fromJust $ albumSamplePic a}>
<figcaption>#{albumTitle a}