forked from phith0n/Minos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
message.htm
67 lines (63 loc) · 2.9 KB
/
message.htm
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
{% extends "base.htm" %}
{% block header_title %}{{ current_user["username"] }}的信箱{% end %}
{% block body %}
{% include "header.htm" %}
<div class="am-container">
<div class="am-g">
<div class="am-u-lg-9">
<div class="am-panel am-panel-default">
<div class="am-panel-hd">
<ol class="minos-breadcrumb am-breadcrumb am-breadcrumb-slash">
<li><a href="/">首页</a></li>
<li class="am-active">{{ current_user['username'] }} 的信箱</li>
</ol>
</div>
{% if messages %}
<ul class="am-list am-list-static am-list-border am-text-sm">
{% for message in messages %}
{% if not message['from'] %}
{% set message['from'] = '系统' %}
{% end %}
{% if not message['read'] %}
<li>{{ message['from'] }} 给 {{ message['to'] }} 的消息:
<a href="/message/{{ message['_id'] }}"><strong>{{ message['content'] }}</strong></a></li>
{% else %}
<li>{{ message['from'] }} 给 {{ message['to'] }} 的消息:
<a href="/message/{{ message['_id'] }}">{{ message['content'] }}</a></li>
{% end %}
{% end %}
</ul>
{% else %}
<div class="am-panel-bd">
没有短消息哦
</div>
{% end %}
</div>
</div>
<div class="am-u-lg-3">
{% include "self.htm" %}
<div class="am-panel am-panel-default">
<div class="am-panel-hd">短消息管理</div>
<ul class="am-list am-list-static minos-admin-edit">
<li><form action="/message" method="post" id="readall">
<input name="method" value="readall" type="hidden">
<a class="am-text-sm" href=""><span class="am-icon-remove"></span> 全部已读</a>
{% raw xsrf_form_html() %}
</form></li>
</ul>
<ul class="am-list am-list-static minos-admin-edit">
<li><form action="/message" method="post" id="deleteall">
<input name="method" type="hidden" value="deleteall">
<a class="am-text-sm" href=""><span class="am-icon-remove"></span> 全部删除</a>
{% raw xsrf_form_html() %}
</form></li>
</ul>
</div>
</div>
</div>
</div>
{% end %}
{% block footer_static %}
<script src="{{ static_url('assets/js/app.js') }}"></script>
<script src="{{ static_url('assets/js/message.js') }}"></script>
{% end %}