feat: SSR 评论回复与 @ 提及通知
发评/审通接入 NotifyService,系统通知会话支持 kind 筛选。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -4,10 +4,19 @@
|
||||
<main class="j13-main j13-messages">
|
||||
<p><a href="/messages">← 返回会话列表</a></p>
|
||||
<h1>{{.PeerName}}</h1>
|
||||
{{if .IsSystem}}<p class="j13-muted">系统通知(只读)</p>{{else}}<p class="j13-muted"><a href="/user/{{.PeerID}}">查看主页</a></p>{{end}}
|
||||
{{if .IsSystem}}
|
||||
<p class="j13-muted">系统通知(只读)</p>
|
||||
{{if .KindLinks}}
|
||||
<nav class="j13-msg-kinds" aria-label="通知类型">
|
||||
{{range .KindLinks}}
|
||||
<a href="{{.URL}}"{{if .Active}} class="is-active" aria-current="page"{{end}}>{{.Label}}</a>
|
||||
{{end}}
|
||||
</nav>
|
||||
{{end}}
|
||||
{{else}}<p class="j13-muted"><a href="/user/{{.PeerID}}">查看主页</a></p>{{end}}
|
||||
{{template "base/alert" .}}
|
||||
|
||||
{{if .HasOlder}}
|
||||
{{if and .HasOlder (or (not .IsSystem) (eq .KindFilter "all") (eq .KindFilter ""))}}
|
||||
<p><a href="/messages/with/{{.PeerID}}?before={{.OlderBefore}}">加载更早消息</a></p>
|
||||
{{end}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user