aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/webapp/WEB-INF/views/index.html
blob: 09297ef9532e9dd7f12582ce2fbd259b5f16cd73 (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
{% 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>
                    {{ msg.getDate() }}
                </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.getText() | raw }}</p>
    {%if msg.AttachmentType is not empty %}
    <div class="irbr"></div>
    {% endif %}
    {% if not readonly %}
    <nav class="l">
        <a href="#" class="a-like">Мне нравится</a>
        {% if msg.VisitorCanComment %}
        <a href="#" class="a-comment">Комментировать</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>&nbsp;{{ 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>&nbsp;&nbsp;{{ msg.Replies }}</a>
        {% endif %}
    </nav>
</article>
{% endfor %}
{% if next is not empty %}
{{ next | raw }}
{% endif %}
{% endblock %}
{% block "column" %}
{% include "views/partial/homecolumn" %}
{% if noindex %}
<!--/noindex-->
{% endif %}
{% endblock %}