mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-24 21:59:21 +02:00
Conditions for reactions
This commit is contained in:
parent
134a8ca16c
commit
9a6e1324d5
|
@ -101,14 +101,14 @@
|
||||||
{{if .Pleroma.Reactions}}
|
{{if .Pleroma.Reactions}}
|
||||||
<div class="pleroma-reactions">
|
<div class="pleroma-reactions">
|
||||||
{{range .Pleroma.Reactions}}
|
{{range .Pleroma.Reactions}}
|
||||||
{{$react := "react"}} {{if .Me}} {{$react := "unreact"}} {{end}}
|
{{$react := "react"}} {{if .Me}} {{$react = "unreact"}} {{end}}
|
||||||
<form action="/{{$react}}-with/{{$st_id}}?emoji={{.Name}}" method="post" target="_self">
|
<form action="/{{$react}}-with/{{$st_id}}?emoji={{.Name}}" method="post" target="_self">
|
||||||
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
||||||
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
||||||
{{if .Url}}
|
{{if .Url}}
|
||||||
<input type="image" src="{{.Url}}" title="{{.Name}}{{.Count}}*" height=32 width=32 class="pleroma-emoji">
|
<input type="image" src="{{.Url}}" title="{{.Name}}{{.Count}}*" {{if eq $react "unreact"}}height=36 width=36 {{else}} height=32 width=32 {{end}} class="pleroma-emoji">
|
||||||
{{else}}
|
{{else}}
|
||||||
<input type="submit" value="{{.Name}}{{.Count}}*" class="pleroma-emoji">
|
<input type="submit" value="{{.Name}}{{.Count}}{{if eq $react "unreact"}}*{{end}}" class="pleroma-emoji">
|
||||||
{{end}}
|
{{end}}
|
||||||
</form>
|
</form>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in New Issue