eidolon/templates/album.hamlet

19 lines
663 B
Text
Raw Normal View History

2014-08-28 16:08:56 +00:00
$newline always
2016-08-31 19:37:20 +00:00
<div .subheader .item>
<h1>#{albumTitle album} <small>by <a href=@{UserR ownerName}>#{ownerSlug}</a></small>
$if presence == True
<a href=@{DirectUploadR albumId}>Upload image to this album
<br>
<a href=@{AlbumSettingsR albumId}>Change settings of this album
$if null media
<div .item>
<p class="center">This album is empty
$else
$forall (Entity mediumId medium) <- media
2016-08-31 14:34:50 +00:00
<div .item>
2016-08-31 19:37:20 +00:00
<a href=@{MediumR mediumId}>
<figure>
<img src=@{StaticR $ StaticRoute (drop 2 $ map T.pack $ splitDirectories $ mediumThumb medium) []} title=#{mediumTitle medium}>
<figcaption>#{mediumTitle medium}