display actual reaction for the button label
This commit is contained in:
parent
c0e1856f0e
commit
578e9c9351
|
@ -121,10 +121,12 @@ in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
|||
<button onclick="return flogit(this, 'untag', '{{ .Honk.XID }}');">untag me</button>
|
||||
{{ end }}
|
||||
<button><a href="/edit?xid={{ .Honk.XID }}">edit</a></button>
|
||||
{{ if not (eq .Badonk "none") }}
|
||||
{{ if .Honk.IsReacted }}
|
||||
<button disabled>badonked</button>
|
||||
{{ else }}
|
||||
<button onclick="return flogit(this, 'react', '{{ .Honk.XID }}');">badonk</button>
|
||||
<button onclick="return flogit(this, 'react', '{{ .Honk.XID }}');">{{ .Badonk }}</button>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</details>
|
||||
|
|
|
@ -34,8 +34,9 @@ servermsgs[curpagestate.name + ":" + curpagestate.arg] = "{{ .ServerMessage }}"
|
|||
{{ $BonkCSRF := .HonkCSRF }}
|
||||
{{ $IsPreview := .IsPreview }}
|
||||
{{ $MapLink := .MapLink }}
|
||||
{{ $Badonk := .User.Options.Reaction }}
|
||||
{{ range .Honks }}
|
||||
{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview }}
|
||||
{{ template "honk.html" map "Honk" . "MapLink" $MapLink "BonkCSRF" $BonkCSRF "IsPreview" $IsPreview "Badonk" $Badonk }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue