dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 78f560e7eed03a50e29cbf96a515a07571dcbb5d
parent f59924f9175e6503585c6be0a5aa8f5987d1802e
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 12 Jan 2023 16:33:24 -0800

simplify template

Diffstat:
Mpkg/web/public/views/pages/chat-messages.gohtml | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pkg/web/public/views/pages/chat-messages.gohtml b/pkg/web/public/views/pages/chat-messages.gohtml @@ -248,10 +248,11 @@ <a href="/api/v1/chat/top-bar/{{ $.Data.RoomName }}?quote={{ .UUID }}{{ $.Data.TopBarQueryParams | safeURL }}" target="iframe1" class="date date-link" title="{{ .CreatedAt.Format "01-02 15:04:05" }}">{{ .CreatedAt.Format $.Data.DateFormat }}</a>&nbsp; {{- end -}} {{- if and .ToUserID (ne .ToUser.ID $.AuthUser.ID) -}} - <a href="/u/{{ .ToUser.Username }}" target="_blank" style="color: #888;">-</a>&nbsp; + <a href="/u/{{ .ToUser.Username }}" target="_blank" style="color: #888;">-</a> {{- else -}} - <a href="/u/{{ .User.Username }}" target="_blank" style="color: #888;">-</a>&nbsp; + <a href="/u/{{ .User.Username }}" target="_blank" style="color: #888;">-</a> {{- end -}} + &nbsp; {{- if .ToUserID -}} [ {{- if eq .User.ID $.AuthUser.ID -}}