This repository has been archived by the owner on Jan 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotification_light.html
51 lines (48 loc) · 2.09 KB
/
notification_light.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>消息</title>
<link rel="stylesheet" href="css/notification_light.css">
<link rel="stylesheet" href="css/markdown_light.css">
</head>
<body>
<div id="page" v-cloak>
<div class="cell" v-for="message in messages">
<div class="main">
<div class="top-container">
<img class="avatar" :src="message.author.avatar_url | avatarCompat" @click="openUser(message.author.loginname)">
<div class="info">
<div class="line1">
<span class="loginname text-primary">
{{message.author.loginname}}
</span>
<span class="time" :class="{'text-secondary': message.has_read, 'text-accent': !message.has_read}">
{{message.create_at | relativeTimeSpan}}
</span>
</div>
<div class="line2">
<span class="action text-secondary">
{{message | messageAction}}
</span>
<div class="badge-dot" v-if="!message.has_read"></div>
</div>
</div>
</div>
<div class="markdown-container" v-if="message.reply && message.reply.id" v-html="message.reply.content_html" @click="openImageProxy($event)"></div>
<div class="reference-container" @click="openTopic(message.topic.id)">
<div class="topic-title text-secondary">话题:{{message.topic.title}}</div>
</div>
</div>
<div class="deep-line"></div>
</div>
</div>
<script src="js/vue.js"></script>
<script src="js/image_bridge.js"></script>
<script src="js/format_bridge.js"></script>
<script src="js/notification_bridge.js"></script>
<script src="js/notification.js"></script>
<script src="js/notification_test.js"></script>
</body>
</html>