eidolon/templates/profile.hamlet

25 lines
707 B
Text
Raw Normal View History

$newline always
2014-08-15 11:25:33 +00:00
<h3>Profile of #{ownerName}
2014-08-17 20:58:33 +00:00
$if null userAlbs
2014-08-15 11:25:33 +00:00
This user has no albums yet
$else
Albums of this user:
2014-08-17 20:58:33 +00:00
$forall (Entity albumId album) <- userAlbs
2014-08-15 11:25:33 +00:00
<div class="thumbnails">
2014-08-18 04:06:16 +00:00
<a href=@{AlbumR albumId}>
2014-08-28 16:08:56 +00:00
$if (albumSamplePic album) == Nothing
<img width="200px" src="/static/img/album.jpg"><br>
$else
<img width="200px" src=#{T.pack $ fromJust $ albumSamplePic album}><br>
2014-08-17 20:58:33 +00:00
#{albumTitle album}
2014-08-15 11:25:33 +00:00
$if null recentMedia
This user has not uploaded any images
$else
2014-08-15 11:25:33 +00:00
Newest images:
2014-08-18 04:06:16 +00:00
$forall (Entity mediumId medium) <- take 10 recentMedia
<div class="thumbnails">
2014-08-18 04:06:16 +00:00
<a href=@{MediumR mediumId}>
<img src=#{mediumPath medium}>