mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-26 17:03:01 +00:00
Compact html code template reactions
This commit is contained in:
parent
b28171ed7b
commit
134a8ca16c
@ -101,27 +101,16 @@
|
|||||||
{{if .Pleroma.Reactions}}
|
{{if .Pleroma.Reactions}}
|
||||||
<div class="pleroma-reactions">
|
<div class="pleroma-reactions">
|
||||||
{{range .Pleroma.Reactions}}
|
{{range .Pleroma.Reactions}}
|
||||||
{{if .Me}}
|
{{$react := "react"}} {{if .Me}} {{$react := "unreact"}} {{end}}
|
||||||
<form action="/unreact-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}}" alt="{{.Name}}{{.Count}}*" height=36 width=36 class="pleroma-emoji">
|
<input type="image" src="{{.Url}}" title="{{.Name}}{{.Count}}*" height=32 width=32 class="pleroma-emoji">
|
||||||
{{else}}
|
{{else}}
|
||||||
<input type="submit" value="{{.Name}}{{.Count}}*" class="pleroma-emoji">
|
<input type="submit" value="{{.Name}}{{.Count}}*" class="pleroma-emoji">
|
||||||
{{end}}
|
{{end}}
|
||||||
</form>
|
</form>
|
||||||
{{else}}
|
|
||||||
<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="referrer" value="{{$.Ctx.Referrer}}">
|
|
||||||
{{if .Url}}
|
|
||||||
<input type="image" src="{{.Url}}" alt="{{.Name}}{{.Count}}" height=32 width=32 class="pleroma-emoji">
|
|
||||||
{{else}}
|
|
||||||
<input type="submit" value="{{.Name}}{{.Count}}" class="pleroma-emoji">
|
|
||||||
{{end}}
|
|
||||||
</form>
|
|
||||||
{{end}}
|
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Loading…
Reference in New Issue
Block a user