eidolon/templates/medium.hamlet

59 lines
1.9 KiB
Text
Raw Normal View History

2014-08-18 04:06:16 +00:00
<h3>#{mediumTitle medium}
2014-09-05 19:00:03 +00:00
by <a href=@{UserR ownerName}>#{ownerName}</a> from album <a href=@{AlbumR albumId}>#{albumTitle album}</a>
2014-08-19 23:41:21 +00:00
2014-08-30 18:25:08 +00:00
2014-08-18 04:06:16 +00:00
<div class="image">
<img src=#{mediumPath medium}>
2014-08-19 23:41:21 +00:00
2014-08-18 04:06:16 +00:00
<div class="desc">
2014-08-18 11:18:42 +00:00
Uploaded on: #{formatTime defaultTimeLocale "%A %F %H:%M" (mediumTime medium)}<br>
2014-08-18 04:06:16 +00:00
Description:<br>
#{mediumDescription medium}
2014-08-30 18:25:08 +00:00
<br>
2014-09-14 03:03:13 +00:00
<div class="tags">
Tags:
<ul>
$if null (mediumTags medium)
none
$else
$forall tag <- mediumTags medium
<li>
<a href=@{TagR tag}>#{tag}
2014-08-30 18:25:08 +00:00
$if presence == True
<a href=@{MediumSettingsR mediumId}>Change medium settings
$if null comments
<p>There are no Comments yet
$else
$forall (Entity commentId comment) <- comments
2014-12-28 02:36:25 +00:00
<div #comment>
<a href=@{ProfileR $ fromJust $ commentAuthor comment}>#{fromJust $ commentAuthorSlug comment}</a> wrote on #{formatTime defaultTimeLocale "%A %F %H:%M" $ commentTime comment}:
<hr>
#{commentContent comment}
$if userId /= Nothing
<hr>
<a href=@{CommentReplyR commentId}>Reply to this comment
2014-12-08 05:36:38 +00:00
$if userId == (commentAuthor comment)
<a href=@{CommentDeleteR commentId}>Delete this comment
$forall (Entity replyId reply) <- replies
$if commentParent reply == Just commentId
2014-12-28 02:36:25 +00:00
<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}
2014-12-08 05:36:38 +00:00
$if userId == (commentAuthor comment)
<a href=@{CommentDeleteR commentId}>Delete this comment
$if userId /= Nothing
<form method=post enctype=#{enctype}>
^{commentWidget}
<div>
<input type=submit value="Post comment">
2014-12-14 19:21:23 +00:00
get a feed from this:
<a href=@{CommentFeedAtomR mediumId}>Atom
<a href=@{CommentFeedRssR mediumId}>RSS