ui: 比赛广播消息时显示发送者uid

This commit is contained in:
undefined committed 2021-06-13 19:13:10 +08:00
1 parent 923d10fb84
commit 549c68cfa4
7 files changed
+35 -27

No files matched your search

@@ -32,9 +32,10 @@ const messagePage = new AutoloadPage('messagePage', () => {
if (msg.mdoc.flag & FLAG_ALERT) {
// Is alert
new InfoDialog({
cancelByClickingBack: false,
$body: tpl`
<div class="typo">
<p>${i18n('Message from {0}:', msg.mdoc.from)}</p>
${{ templateRaw: true, html: i18n('Message from {0}:', `<div data-user>${msg.mdoc.from}</div>`) }}
<p>${i18n(msg.mdoc.content)}</p>
</div>`,
}).open();