/
stream-element_tpl.jst.hbs
80 lines (72 loc) · 2.01 KB
/
stream-element_tpl.jst.hbs
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<div class="media">
{{#if current_user}}
<div class="controls">
{{#unless authorIsCurrentUser}}
<a href="#" rel="nofollow" class="block_user">
<img src="{{imageUrl "icons/ignoreuser.png"}}"" alt="Ignoreuser" class="control_icon" title="{{t "ignore"}}" />
</a>
<a href="#" rel="nofollow" class="hide_post">
<img src="{{imageUrl "deletelabel.png"}}" class="delete control_icon" title="{{t "stream.hide"}}" />
</a>
{{else}}
<a href="#" rel="nofollow" class="remove_post">
<img src="{{imageUrl "deletelabel.png"}}" class="delete control_icon" title="{{t "delete"}}" />
</a>
{{/unless}}
</div>
{{/if}}
{{#with author}}
<a href="/people/{{guid}}" class="img">
{{{personImage this}}}
</a>
{{/with}}
<div class="bd">
<div>
{{#with author}}
<a href="/people/{{guid}}" class="author">
{{name}}
</a>
{{/with}}
<span class="details grey">
-
<a href="/posts/{{id}}">
<time class="timeago" datetime="{{created_at}}" />
</a>
{{#if reshares_count}}
-
{{t "stream.reshares" count=reshares_count}}
{{/if}}
</span>
</div>
{{#if showPost}}
{{#if nsfw}}
<div class="nsfw_off">
<strong>
#NSFW
</strong>
|
<a href="#" class="toggle_nsfw_state">
{{t "stream.hide_nsfw_posts"}}
</a>
</div>
{{/if}}
<div class="post-content"> </div>
<div class="feedback"> </div>
<div class="likes"> </div>
<div class="comments"> </div>
{{else}}
<div class="nsfw-shield">
<strong>
#NSFW
</strong>
|
<a href="#" class="show_nsfw_post">
{{t "stream.show_nsfw_post"}}
</a>
|
<a href="#" class="toggle_nsfw_state">
{{t "stream.show_nsfw_posts"}}
</a>
</div>
{{/if}}
</div>