eidolon/templates/adminAlbums.hamlet

17 lines
530 B
Text
Raw Normal View History

2014-09-07 04:56:34 +00:00
$newline always
2015-01-11 19:06:44 +00:00
<div id="header" class="item" data-width="400">
<div class="inner">
<h1>Albums
$if null albums
<p>There are no albums yet
2014-09-07 04:56:34 +00:00
2015-01-11 19:06:44 +00:00
$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}