forked from Awful/Awful.app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts-view.html
More file actions
53 lines (43 loc) · 1.55 KB
/
posts-view.html
File metadata and controls
53 lines (43 loc) · 1.55 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!doctype html>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, minimum-scale=1, maximum-scale=1">
<div id="posts"></div>
<div id="end"></div>
<div id="ad"></div>
<div id="loading" style="display: none">
<div class="container">
<div class="progress-bar"><div></div></div>
<p></p>
</div>
</div>
<script id="postTemplate" type="text/html">
<article id="{{postID}}" class="post {{#beenSeen}}seen{{/beenSeen}}
{{#authorIsOriginalPoster}}role-op{{/authorIsOriginalPoster}}
{{#authorIsAModerator}}role-mod{{/authorIsAModerator}}
{{#authorIsAnAdministrator}}role-admin{{/authorIsAnAdministrator}}
{{^authorAvatarURL}}no-avatar{{/authorAvatarURL}}">
<header>
{{#authorAvatarURL}}
<img class="avatar" src="{{authorAvatarURL}}" alt="">
{{/authorAvatarURL}}
<button class="action-button" title="Post actions">•••</button>
<h1 class="username">{{authorName}}</h1>
<time class="postdate">{{postDate}}</time>
<time class="regdate">{{authorRegDate}}</time>
</header>
<section class="postbody">
{{{innerHTML}}}
{{#hasAttachment}}
<p class="attachment">
<img src="http://forums.somethingawful.com/attachment.php?postid={{postID}}" alt="">
</p>
{{/hasAttachment}}
{{#editMessage}}
<p class="editedby">
<span>{{editMessage}}</span>
</p>
{{/editMessage}}
</section>
</article>
</script>
<script src="posts-view.js"></script>