eidolon/templates/album.hamlet

29 lines
913 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 class="thumbnail">
<img src=#{mediumThumb medium}>
<figcaption>#{mediumTitle medium}
<div id="footer">
<div class="right">
get a feed from this:
<a href=@{AlbumFeedAtomR albumId}>Atom
<a href=@{AlbumFeedRssR albumId}>RSS