blob: 219b1b1a1c63f524932eb8e5751c8b1cdfa30254 (
plain) (
blame)
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
81
82
83
84
85
86
87
|
<article class="msg-cont" data-mid="{{ msg.mid }}">
<header class="h">
<span>
<a href="/{{ msg.user.name }}/"><span>{{ msg.user.name }}</span>{% if msg.user.premium %}<span style="color: green;"><i data-icon="ei-star" data-size="s"></i></span>{% endif %}</a>
</span>
<div class="msg-avatar"><a href="/{{ msg.user.name }}/">
<img src="{{ msg.user.avatar }}" alt="{{ msg.user.name }}"/></a>
</div>
<div class="msg-ts">
{% if msg.friendsOnly %}
<i data-icon="ei-lock" data-size="s"></i> ·
{% endif %}
<a href="/{{ msg.user.name }}/{{ msg.mid }}">
<time datetime="{{ msg.created | date('yyyy-MM-dd HH:mm:ss', timeZone="UTC") }}Z"
title="{{ msg.created | date('yyyy-MM-dd HH:mm:ss', timeZone="UTC") }} GMT">
{{ msg.created | prettyTime }}
</time>
</a>
{% if msg.created != msg.updatedAt %}
· Edited
{% endif %}
</div>
</header>
<div class="msg-txt">
<span class="msg-tags">
{{ tags(msg.user.name, msg.tags | tagsList) }}
</span>
{{ msg | formatMessage }}
</div>
{% if msg.AttachmentType is not empty %}
<p class="ir"><a href="//i.juick.com/p/{{ msg.mid }}.{{ msg.AttachmentType }}" data-fname="{{ msg.mid }}.{{ msg.AttachmentType }}">
<img src="//i.juick.com/photos-512/{{ msg.mid }}.{{ msg.AttachmentType }}" alt=""/></a>
</p>
{% endif %}
<nav class="l">
{% if visitor.uid == msg.user.uid %}
<a href="/{{ msg.mid }}" class="a-like msg-button">
<span class="msg-button-icon">
<i data-icon="ei-heart" data-size="s"></i>
{% if msg.recommendations.size() > 0 %} {{ msg.recommendations.size() }}
{% else %}
<span> {{ i18n("messages","message.recommend") }}</span>
{% endif %}
</span>
</a>
{% elseif visitor.uid > 0 %}
<a href="/post?body=!+%23{{ msg.mid }}" class="a-like msg-button">
<span class="msg-button-icon">
<i data-icon="ei-heart" data-size="s"></i>
{% if msg.recommendations.size() > 0 %} {{ msg.recommendations.size() }}
{% else %}
<span> {{ i18n("messages","message.recommend") }}</span>
{% endif %}
</span>
</a>
{% else %}
<a href="/login?retpath={{ retpath | default('/') }}" class="a-login msg-button">
<span class="msg-button-icon">
<i data-icon="ei-heart" data-size="s"></i>
{% if msg.recommendations.size() > 0 %}
{{ msg.recommendations.size() }}
{% else %}
<span> {{ i18n("messages","message.recommend") }}</span>
{% endif %}
</span>
</a>
{% endif %}
{% if (not msg.ReadOnly) or (visitor.uid == msg.user.uid) %}
<a href="/{{ msg.mid }}" class="a-comment msg-button">
<span class="msg-button-icon">
<i data-icon="ei-comment" data-size="s"></i>
{% if msg.Replies > 0 %}
{% if msg.unread %}
<span class="badge">{{ msg.Replies }}</span>
{% else %}
{{ msg.Replies }}
{% endif %}
{% else %}
<span> {{ i18n("messages","message.comment") }}</span>
{% endif %}
</span>
</a>
{% endif %}
</nav>
</article>
|