From 134a8ca16cc1b55cf784b4fca93d10bfa35ac224 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Mon, 31 Oct 2022 12:36:28 +0300 Subject: [PATCH] Compact html code template reactions --- templates/status.tmpl | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/templates/status.tmpl b/templates/status.tmpl index c317815..5a8fcf3 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -101,27 +101,16 @@ {{if .Pleroma.Reactions}}
{{range .Pleroma.Reactions}} - {{if .Me}} -
+ {{$react := "react"}} {{if .Me}} {{$react := "unreact"}} {{end}} + {{if .Url}} - + {{else}} {{end}}
- {{else}} -
- - - {{if .Url}} - - {{else}} - - {{end}} -
- {{end}} {{end}}
{{end}}