aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/templates/views/pm_inbox.html
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-03-31 00:44:49 +0300
committerGravatar Vitaly Takmazov2021-03-31 00:44:49 +0300
commit93fe99d9bfc9ae00f4164ea0ba32290722dff4dd (patch)
treef0637a6ad99ae7033e2fee4d100ed1fc63e64728 /src/main/resources/templates/views/pm_inbox.html
parentfbe50e415fbb3da5a7fa151338b00e6a94dc8d5d (diff)
Resource filtering is handled by Spring Boot Maven plugin
Diffstat (limited to 'src/main/resources/templates/views/pm_inbox.html')
-rw-r--r--src/main/resources/templates/views/pm_inbox.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/main/resources/templates/views/pm_inbox.html b/src/main/resources/templates/views/pm_inbox.html
new file mode 100644
index 00000000..f89b2923
--- /dev/null
+++ b/src/main/resources/templates/views/pm_inbox.html
@@ -0,0 +1,35 @@
+{% extends "layouts/default" %}
+{% block content %}
+{% if not msgs.isEmpty() %}
+<ul id="private-messages">
+ {% for msg in msgs %}
+ <li class="msg">
+ <div class="msg-cont">
+ <div class="msg-header">
+ @<a href="/{{ msg.user.name }}/">{{ msg.user.name }}</a>:
+ <div class="msg-avatar">
+ <a href="/{{ msg.user.name }}/">
+ <img src="{{ msg.user.avatar }}" alt="{{ msg.user.name }}"/>
+ </a>
+ </div>
+ <div class="msg-ts">{{ msg.created | prettyTime }}</div>
+ </div>
+
+ <div class="msg-txt">{{ msg | formatMessage }}</div>
+ <form class="pmmsg">
+ <input type="hidden" name="uname" value="{{ msg.user.name }}"/>
+ <div class="msg-comment">
+ <div class="ta-wrapper">
+ <textarea name="body" rows="1" class="replypm" placeholder="Написать ответ"></textarea>
+ </div>
+ </div>
+ </form>
+ </div>
+ </li>
+ {% endfor %}
+</ul>
+{% endif %}
+{% endblock %}
+{% block "column" %}
+{% include "views/partial/usercolumn" %}
+{% endblock %}