blob: 2d0e3e978d5f22d1c0669c309195331c01fbc569 (
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
|
<article data-mid="{{ msg.mid }}" itemprop="blogPost" itemscope="" itemtype="http://schema.org/BlogPosting" itemref="org">
<header class="h">
<span itemprop="author" itemscope="" itemtype="http://schema.org/Person">
<a href="/{{ msg.user.name }}/" itemprop="url" rel="author"><span itemprop="name">{{ msg.user.name }}</span></a>
</span>
<div class="msg-avatar"><a href="/{{ msg.user.name }}/">
<img src="//i.juick.com/a/{{ msg.user.uid }}.png" alt="{{ msg.user.name }}"/></a>
</div>
<div class="msg-ts">
<a href="/{{ msg.user.name }}/{{ msg.mid }}">
<time itemprop="datePublished dateModified" itemtype="http://schema.org/Date" datetime="{{ msg.timestamp | timestamp | date('yyyy-MM-dd HH:mm:ss') }}Z"
title="{{ msg.timestamp | timestamp | date('yyyy-MM-dd HH:mm:ss') }} GMT">
{{ msg.timestamp | prettyTime }}
</time>
</a>
</div>
<div class="msg-tags" itemprop="headline">
{{ tags(msg.user.name, msg.tags | tagsList) }}
</div>
</header>
<p itemprop="description">{{ msg | formatMessage }}</p>
{% 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 itemprop="image" 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 }}">
<i data-icon="ei-heart" data-size="s"></i> {{ i18n("messages","message.recommend") }}
{% if msg.Likes > 0 %} ({{ msg.Likes }}){% endif %}
</a>
{% elseif visitor.uid > 0 %}
<a href="/post?body=!+%23{{ msg.mid }}" class="a-like">
<i data-icon="ei-heart" data-size="s"></i> {{ i18n("messages","message.recommend") }}
{% if msg.Likes > 0 %} ({{ msg.Likes }}){% endif %}
</a>
{% else %}
<a href="/login" class="a-login">
<i data-icon="ei-heart" data-size="s"></i> {{ i18n("messages","message.recommend") }}
{% if msg.Likes > 0 %} ({{ msg.Likes }}){% endif %}
</a>
{% endif %}
{% if (visitor.uid > 0 and not msg.ReadOnly) or (visitor.uid == msg.user.uid) %}
<a href="/{{ msg.mid }}" class="a-comment">
<i data-icon="ei-comment" data-size="s"></i> {{ i18n("messages","message.comment") }}
{% if msg.Replies > 0 %} ({{ msg.Replies }}){% endif %}
</a>
<a href="#" class="msg-menu">
<i data-icon="ei-link" data-size="s"></i> {{ i18n("messages","message.share") }}
</a>
{% elseif visitor.uid == 0 and not msg.ReadOnly %}
<a href="/login" class="a-login">
<i data-icon="ei-comment" data-size="s"></i> {{ i18n("messages","message.comment") }}
{% if msg.Replies > 0 %} ({{ msg.Replies }}){% endif %}
</a>
<a href="#" class="msg-menu">
<i data-icon="ei-link" data-size="s"></i> {{ i18n("messages","message.share") }}
</a>
{% endif %}
{% if msg.FriendsOnly %}
<a href="#" class="a-privacy">Открыть доступ</a>
{% endif %}
</nav>
</article>
|