blob: a17a15e7f8165c3df99fc884b47463c20d3f938b (
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
|
{% extends "layouts/content" %}
{% import "views/macros/tags" %}
{% block content %}
{% if noindex %}
<!--noindex-->
{% endif %}
{% if visitor.getUid() > 0 %}
{% include "views/partial/newmessage" %}
{% endif %}
{% for msg in msgs %}
<article data-mid="{{ msg.getMid() }}">
<header class="h">@<a href="/{{ msg.getUser().getName() }}/">{{ msg.getUser().getName() }}</a>:
<div class="msg-avatar"><a href="/{{ msg.getUser().getName() }}/">
<img src="//i.juick.com/a/{{ msg.getUser().getUid() }}.png" alt="{{ msg.getUser().getName() }}"/></a></div>
<div class="msg-menu"><a href="#"></a></div>
<div class="msg-ts">
<a href="/{{ msg.getUser().getName() }}/{{ msg.getMid() }}">
<time datetime="{{ msg.getDate() | date('yyyy-MM-dd HH:mm:ss')}}Z"
title="{{msg.getDate() | date('yyyy-MM-dd HH:mm:ss')}} GMT">
{{ msg.getDate() | prettyTime }}
</time>
</a>
</div>
<div class="msg-tags">
{{ tags(msg.getUser().getName(), msg.getTags()) }}
</div>
</header>
{% if msg.AttachmentType is not empty %}
<p class="ir"><a href="//i.juick.com/photos-512/{{ msg.getMid() }}.{{ msg.AttachmentType }}"
onclick="return showPhotoDialog('{{ msg.getMid() }}.{{ msg.AttachmentType }}')">
<img src="//i.juick.com/photos-512/{{ msg.getMid() }}.{{ msg.AttachmentType }}" alt=""/></a>
</p>
{% endif %}
<p>{{ msg | formatMessage }}</p>
{% if msg.AttachmentType is not empty %}
<div class="irbr"></div>
{% endif %}
{% if not readonly %}
<nav class="l">
{% if visitor.uid > 0 %}
<a href="/post?body=!+%23{{ msg.getMid() }}" class="a-like">Рекомендовать</a>
{% else %}
<a href="/login" class="a-login">Рекомендовать</a>
{% endif %}
{% if visitor.uid > 0 and (not msg.ReadOnly or visitor.uid == msg.user.uid) %}
<a href="/{{ msg.getMid() }}" class="a-comment">Комментировать</a>
{% elseif visitor.uid == 0 and not msg.ReadOnly %}
<a href="/login" class="a-login">Комментировать</a>
{% endif %}
{% if msg.FriendsOnly %}
<a href="#" class="a-privacy">Открыть доступ</a>
{% endif %}
{% if isModerator %}
<a href="#" class="a-popular-plus">+</a>
<a href="#" class="a-popular-minus">-</a>
<a href="#" class="a-popular-delete">x</a>
{% endif %}
</nav>
{% endif %}
<nav class="s">
{% if msg.Likes > 0 %}
<a href="/{{ msg.getUser().getName() }}/{{ msg.getMid() }}" class="likes">
<i data-icon="ei-heart" data-size="s"></i> {{ msg.Likes }}</a>
{% endif %}
{% if msg.Replies > 0 %}
<a href="/{{ msg.getUser().getName() }}/{{ msg.getMid() }}" class="replies">
<i data-icon="ei-comment" data-size="s"></i> {{ msg.Replies }}</a>
{% endif %}
</nav>
</article>
{% endfor %}
{% if (next | default('')) is not empty %}
{{ next | raw }}
{% endif %}
{% endblock %}
{% block "column" %}
{% include "views/partial/homecolumn" %}
{% if noindex %}
<!--/noindex-->
{% endif %}
{% endblock %}
|