aboutsummaryrefslogtreecommitdiff
path: root/juick-spring-www/src/main/webapp/WEB-INF/templates/views/pm_inbox.html
blob: 80464e65a62ee9b2ed7f81aeffab964abf9d07b6 (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
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{layout/mainLayout}">
<head>
    <title th:text="${title}">Inbox title</title>
</head>

<body>
<section id="content">
    <ul layout:fragment="content" id="private-messages" th:if="${not #lists.isEmpty(msgs)}">
        <li class="msg" th:each="msg:${msgs}">
            <div class="msg-cont">
                <div class="msg-header">
                    @<a th:href="|/${msg.getUser().getName()}/|" th:text="${msg.getUser().getName()}">ugnich</a>:
                    <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-ts" th:text="${msg.getDate()}">01.01.1970</div>
                </div>

                <div class="msg-txt" th:utext="${msg.getText()}">Lorem ipsum</div>

                <form action="/pm/send" method="POST" enctype="multipart/form-data">
                    <input type="hidden" name="uname" th:value="${msg.getUser().getName()}"/>
                    <div class="msg-comment">
                        <div class="ta-wrapper">
                            <textarea name="body" rows="1" class="replypm" placeholder="Write a reply"
                                      th:placeholder="#{postForm.writeReply}"></textarea>
                        </div>
                    </div>
                </form>

            </div>
        </li>
    </ul>
</section>
<aside id="column">
    <p layout:fragment="column" th:replace="views/partial/homecolumn">Main side column</p>
</aside>

</body>
</html>