aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/thread_message.html
blob: 159eebf5e443323c94250789eb39817df1ad9beb (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
<ul xmlns:th="http://www.thymeleaf.org">
    <li th:id="|msg-${msg.getMid()}|" th:data-mid="${msg.getMid()}" class="msg msgthread">
        <div class="msg-cont">
            <div class="msg-menu"><a href="#"></a></div>
            <div class="msg-ts" th:text="${msg.getDate()}">01.01.1970</div>
            <div class="msg-avatar">
                <a th:href="|/${msg.getUser().getName()}/|">
                    <img th:src="|//i.juick.com/a/${msg.getUser().getUid()}.png|"
                         th:alt="${msg.getUser().getName()}"/>
                </a>
            </div>
            <div class="msg-header">
                @<a th:href="|/${msg.getUser().getName()}/|" th:text="${msg.getUser().getName()}">ugnich</a>:
                <th:block th:text="${tagsStr}"/>
            </div>
            <div class="msg-txt" th:utext="${msg.getText()}">
                Lorem ipsum
            </div>
            <div class="msg-media" th:if="${msg.getAttachmentType() != null}">
                <a href="|//i.juick.com/p/${msg.getMid()}.${msg.getAttachmentType()}|">
                    <img src="|//i.juick.com/photos-512/${msg.getMid()}.${msg.getAttachmentType()}|"/>
                </a>
            </div>
            <form th:if="${msg.VisitorCanComment}" action="/comment" method="POST" enctype="multipart/form-data">
                <input type="hidden" name="mid" th:value="${msg.getMid()}"/>
                <div class="msg-comment">
                    <div class="ta-wrapper">
                        <textarea name="body" rows="1" class="reply" placeholder="Написать комментарий"></textarea>
                    </div>
                </div>
            </form>
            <div class="msg-recomms" th:text="|Рекомендовали (${recommsCount}): ${recomms}|">Recommended(1): @ugnich</div>
        </div>
    </li>
    <li id="mtoolbar">
        <ul>
            <li><a th:href="|/${msg.getMid()}|">
                <div style="background-position: -64px 0"></div>
                <th:block th:text="${msg.getMid()}"></th:block>
            </a></li>
            <th:block th:if="${#authorization.expression('isAuthenticated()')}">
                <li th:if="${isSubscribed}"><a th:href="|/post?body=U+%23${msg.getMid()}|">
                    <div style="background-position: -48px 0"></div>
                    Подписан</a></li>
                <li th:if="${isSubscribed == false}"><a th:href="|/post?body=S+%23${msg.getMid()}|">
                    <div style="background-position: -16px 0"></div>
                    Подписаться</a></li>
                <li th:if="${visitorInBL == false}"><a th:href="|/post?body=%21+%23${msg.getMid()}|">
                    <div style="background-position: -32px 0"></div>
                    Рекомендовать</a></li>
                <li th:if="${isOwnMessage}"><a th:href="|/post?body=D+%23${msg.getMid()}|">
                    <div style="background-position: 0"></div>
                    Удалить</a></li>
            </th:block>
        </ul>
    </li>
</ul>