dkforest

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

commit 4e33f1e1f3b351809912bd29ade9a0b0597dcc02
parent 01c6023638fd7a161fd23f1abdb842aad4508550
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Fri, 27 Jan 2023 22:51:17 -0800

improve formatting

Diffstat:
Mpkg/web/handlers/api/v1/slashInterceptor.go | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/pkg/web/handlers/api/v1/slashInterceptor.go b/pkg/web/handlers/api/v1/slashInterceptor.go @@ -975,10 +975,10 @@ func handlePm0(c *Command, msg string) (handled bool) { if sig, ok := p.(*packet.Signature); ok { fp := utils.FormatPgPFingerprint(sig.IssuerFingerprint) msg := fmt.Sprintf("<br />"+ - "File: %s (%s)<br />"+ - "Signature made: %s<br />"+ - "Fingerprint: %s<br />"+ - "Issuer: %s", + "File: <span style=\"color: #82e17f;\">%s</span> (<span style=\"color: #82e17f;\">%s</span>)<br />"+ + "Signature made: <span style=\"color: #82e17f;\">%s</span><br />"+ + "Fingerprint: <span style=\"color: #82e17f;\">%s</span><br />"+ + "Issuer: <span style=\"color: #82e17f;\">%s</span>", c.upload.OrigFileName, humanize.Bytes(uint64(c.upload.FileSize)), sig.CreationTime.Format(time.RFC1123),