eidolon/templates/album.hamlet

23 lines
836 B
Text
Raw Normal View History

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