2015-01-12 14:15:52 +00:00
|
|
|
<div id="header" class="item" data-width="800">
|
|
|
|
<div class="inner">
|
|
|
|
<h1>#{mediumTitle medium}
|
|
|
|
|
|
|
|
by <a href=@{UserR ownerName}>#{ownerName}</a> from album <a href=@{AlbumR albumId}>#{albumTitle album}</a>
|
|
|
|
|
|
|
|
<img src=#{mediumPath medium}>
|
|
|
|
|
2015-01-12 20:31:29 +00:00
|
|
|
<div id="header" class="item" data-width="400">
|
|
|
|
<div class="inner">
|
2015-01-12 14:15:52 +00:00
|
|
|
<div class="desc">
|
|
|
|
Uploaded on: #{formatTime defaultTimeLocale "%A %F %H:%M" (mediumTime medium)}<br>
|
|
|
|
Description:<br>
|
|
|
|
#{mediumDescription medium}
|
|
|
|
|
|
|
|
<div class="tags">
|
|
|
|
Tags:
|
|
|
|
<ul>
|
|
|
|
$if null (mediumTags medium)
|
|
|
|
none
|
|
|
|
$else
|
|
|
|
$forall tag <- mediumTags medium
|
|
|
|
<li>
|
|
|
|
<a href=@{TagR tag}>#{tag}
|
|
|
|
$if presence == True
|
|
|
|
<a href=@{MediumSettingsR mediumId}>Change medium settings
|
|
|
|
|
|
|
|
$if null comments
|
|
|
|
<p>There are no Comments yet
|
2014-09-14 03:03:13 +00:00
|
|
|
$else
|
2015-01-12 14:15:52 +00:00
|
|
|
$forall (Entity commentId comment) <- comments
|
|
|
|
<div #comment>
|
|
|
|
<a href=@{ProfileR $ fromJust $ commentAuthor comment}>#{fromJust $ commentAuthorSlug comment}</a> wrote on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime comment}:
|
2014-12-07 02:54:02 +00:00
|
|
|
<hr>
|
2015-01-12 14:15:52 +00:00
|
|
|
#{commentContent comment}
|
|
|
|
$if userId /= Nothing
|
|
|
|
<hr>
|
|
|
|
<a href=@{CommentReplyR commentId}>Reply to this comment
|
|
|
|
$if userId == (commentAuthor comment)
|
|
|
|
<a href=@{CommentDeleteR commentId}>Delete this comment
|
2015-01-12 20:31:29 +00:00
|
|
|
$forall (Entity replyId reply) <- replies
|
2015-01-12 14:15:52 +00:00
|
|
|
$if commentParent reply == Just commentId
|
|
|
|
<div #comment class="reply">
|
|
|
|
<a href=@{ProfileR $ fromJust $ commentAuthor reply}>#{fromJust $ commentAuthorSlug reply}</a> wrote on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime reply}:
|
|
|
|
<hr>
|
|
|
|
#{commentContent reply}
|
2015-01-12 20:31:29 +00:00
|
|
|
<hr>
|
2015-01-12 14:15:52 +00:00
|
|
|
$if userId == (commentAuthor comment)
|
2015-01-12 20:31:29 +00:00
|
|
|
<a href=@{CommentDeleteR replyId}>Delete this comment
|
2015-01-12 14:15:52 +00:00
|
|
|
|
|
|
|
$if userId /= Nothing
|
|
|
|
<form method=post enctype=#{enctype}>
|
|
|
|
^{commentWidget}
|
|
|
|
<div>
|
|
|
|
<input type=submit value="Post comment">
|
|
|
|
|
|
|
|
get a feed from this:
|
|
|
|
<a href=@{CommentFeedAtomR mediumId}>Atom
|
|
|
|
<a href=@{CommentFeedRssR mediumId}>RSS
|
2015-01-14 19:16:45 +00:00
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
body{background-image: url('/static/css/images/overlay.png'), -webkit-linear-gradient(top, rgba(0,0,0,0) 75%, rgba(0,0,0,0.65)), url('#{mediumPath medium}');}
|