aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/webapp/WEB-INF/views/partial/usercolumn.html
blob: 27cde3a37385e720f082fad9c9869a2439a48151 (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
88
89
90
91
92
93
94
95
96
97
<div id="ctitle">
    <a href="/{{ user.name }}">
        <img src="//i.juick.com/a/{{ user.uid }}.png" alt=""/>{{ user.name }}
    </a>
    <div id="column-expander" tabindex="0"><i data-icon="ei-chevron-down" data-size="s"></i></div>
</div>
<hr/>
{% if visitor is not empty and visitor.uid > 0 and visitor.uid != user.uid %}
<ul class="toolbar">
    {% if isSubscribed %}
    <li>
        <a href="/post?body=U+%40{{ user.name }}" title="Подписан">
            <i data-icon="ei-check" data-size="s"></i>Subscribed
        </a>
    </li>
    {% else %}
    <li>
        <a href="/post?body=S+%40{{ user.name }}" title="Подписаться">
            <i data-icon="ei-plus" data-size="s"></i>Subscribe
        </a>
    </li>
    {% endif %}
    {% if isInBL %}
    <li>
        <a href="/post?body=BL+%40{{ user.name }}" title="Разблокировать">
            <i data-icon="ei-close-o" data-size="s"></i>Unblock
        </a>
    </li>
    {% else %}
    <li>
        <a href="/post?body=BL+%40{{ user.name }}" title="Заблокировать">
            <i data-icon="ei-close" data-size="s"></i>Block
        </a>
    </li>
    {% endif %}
    {% if not isInBLAny %}
    <li>
        <a href="/pm/sent?uname={{ user.name }}" title="Написать приватное сообщение">
            <i data-icon="ei-envelope" data-size="s"></i>PM
        </a>
    </li>
    {% endif %}
</ul>
{% endif %}
<ul>
    <li>
        <a href="/{{ user.name }}">
            {{ i18n("messages","blog.messages") }}{% if statsMessages > 0 %} <span>{{ statsMessages }}</span>{% endif %}
        </a>
    </li>
    <li>
        <a href="/{{ user.name }}/?show=recomm" rel="nofollow">
            {{ i18n("messages","blog.recommendations") }}{% if statsFavorites > 0 %} <span>{{ statsFavorites }}</span>{% endif %}
        </a>
    </li>
    <li>
        <a href="/{{ user.name }}/?show=photos" rel="nofollow">
            {{ i18n("messages","blog.photos") }}{% if statsPhotos > 0 %} <span>{{ statsPhotos }}</span>{% endif %}
        </a>
    </li>
    <li>
        <a href="/{{ user.name }}/friends">
            {{ i18n("messages","blog.iread") }}{% if statsIRead > 0 %} <span>{{ statsIRead }}</span>{% endif %}
        </a>
    </li>
    <li>
        <a href="/{{ user.name }}/readers">
            {{ i18n("messages","blog.readers") }}{% if statsMyReaders > 0 %} <span>{{ statsMyReaders }}</span>{% endif %}
        </a>
    </li>
    <li>
        <p>
            {{ i18n("messages","blog.comments") }}{% if statsReplies > 0 %} <span>{{ statsReplies }}</span>{% endif %}
        </p>
    </li>
</ul>
<hr/>
<form action="/{{ user.name }}/">
    <p><input type="text" name="search" class="inp" placeholder="{{ i18n('messages', 'label.searchInUserPosts', user.name) }}"/></p>
</form>
<div id="ctags">
{% include "views/partial/usertags" %}
</div>
<hr/>
<div id="ustats">
    {% if iread is not empty %}
    <div class="iread">
        {% for u in iread %}
        <span>
            <a href="/{{ u.name }}/">
                <img src="//i.juick.com/as/{{ u.uid }}.png" alt="{{ u.name }}"/>
            </a>
        </span>
        {% endfor %}
    </div>
    {% endif %}
</div>