2014-08-12 21:45:33 +00:00
|
|
|
$newline always
|
2014-09-05 18:40:12 +00:00
|
|
|
<h3>Profile of #{ownerSlug}
|
|
|
|
$if presence == True
|
|
|
|
<a href=@{ProfileSettingsR ownerId}>Change your profile settings
|
2014-08-12 21:45:33 +00:00
|
|
|
|
2014-08-17 20:58:33 +00:00
|
|
|
$if null userAlbs
|
2014-09-05 19:00:03 +00:00
|
|
|
<ul class="noalbum">
|
|
|
|
<li>
|
|
|
|
This user has no albums yet
|
2014-08-15 11:25:33 +00:00
|
|
|
$else
|
2014-09-21 16:44:27 +00:00
|
|
|
<p>Albums of this user:
|
2014-09-14 05:49:42 +00:00
|
|
|
<ul>
|
|
|
|
$forall (Entity albumId album) <- userAlbs
|
2014-09-05 19:00:03 +00:00
|
|
|
<li>
|
2014-09-14 05:49:42 +00:00
|
|
|
<a href=@{AlbumR albumId}>
|
|
|
|
<figure class="thumbnail">
|
2014-09-05 19:00:03 +00:00
|
|
|
$if (albumSamplePic album) == Nothing
|
2014-09-14 05:49:42 +00:00
|
|
|
<img src="/static/img/album.jpg"><br>
|
2014-09-05 19:00:03 +00:00
|
|
|
$else
|
2014-09-14 05:49:42 +00:00
|
|
|
<img src=#{T.pack $ fromJust $ albumSamplePic album}>
|
|
|
|
<figcaption>#{albumTitle album}
|
2014-08-12 21:45:33 +00:00
|
|
|
|
2014-08-15 11:25:33 +00:00
|
|
|
$if null recentMedia
|
|
|
|
This user has not uploaded any images
|
2014-08-12 21:45:33 +00:00
|
|
|
$else
|
2014-09-21 16:44:27 +00:00
|
|
|
<p>Newest images:
|
2014-09-14 05:17:51 +00:00
|
|
|
<ul>
|
|
|
|
$forall (Entity mediumId medium) <- take 10 recentMedia
|
|
|
|
<li>
|
|
|
|
<a href=@{MediumR mediumId}>
|
|
|
|
<figure class="thumbnail">
|
2014-10-01 22:58:36 +00:00
|
|
|
<img src=#{mediumThumb medium}>
|
2014-09-14 05:17:51 +00:00
|
|
|
<figcaption>#{mediumTitle medium}
|