forked from Awful/Awful.app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPost.mustache
More file actions
27 lines (20 loc) · 928 Bytes
/
Post.mustache
File metadata and controls
27 lines (20 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<post id="{{ postID }}" class="{{# beenSeen }}seen{{/ }}{{# roles }} {{ . }}{{/ }} {{^ visibleAvatarURL }}no-avatar{{/ }}">
<header class="userid-{{ author.userID }}" {{# hiddenAvatarURL }}data-awful-avatar="{{ . }}"{{/ }}>
{{# visibleAvatarURL }}<img class="avatar" src="{{ . }}" alt="">{{/ }}
<section class="nameanddate">
<h1 class="username">{{ author.username }} <div class="chevron"></div></h1>
{{# accessibilityRoles }}<span class="voiceover-only">{{ . }}</span>{{/ }}
<time class="regdate">Joined {{ regDateFormat(author.regdate) }}</time>
</section>
</header>
<section class="postbody">
{{{ HTMLContents }}}
</section>
<footer>
<span class="postdate">
<div class="clock"></div>
{{ postDateFormat(postDate) }}
</span>
<button class="action-button" title="Post actions">•••</button>
</footer>
</post>