Also conditionally render for showpaste template
Some checks reported warnings
Nix build / tests (pull_request) Has been cancelled

This commit is contained in:
Gabriel Simmer 2023-08-18 08:54:56 +01:00
parent 020adfd213
commit b0675e9f56
Signed by: arch
SSH key fingerprint: SHA256:m3OEcdtrnBpMX+2BDGh/byv3hrCekCLzDYMdvGEKPPQ

View file

@ -4,10 +4,10 @@
{{if .UserInfo}} {{if .UserInfo}}
{{if ne .PasterUserID .UserID}} {{if ne .PasterUserID .UserID}}
<div class="right">{{.PasterDisplayName}} <img style="width:32px;height:32px" src="{{.PasterProfilePicURL}}" /></div> <div class="right">{{.PasterDisplayName}} {{if .PasterProfilePicURL}}<img style="width:32px;height:32px" src="{{.PasterProfilePicURL}}" />{{end}}</div>
{{end}} {{end}}
{{else}} {{else}}
<div class="right">{{.PasterDisplayName}} <img style="width:32px;height:32px" src="{{.PasterProfilePicURL}}" /></div> <div class="right">{{.PasterDisplayName}} {{if .PasterProfilePicURL}}<img style="width:32px;height:32px" src="{{.PasterProfilePicURL}}" />{{end}}</div>
{{end}} {{end}}
<p>Created at {{.CreatedAt}}</p> <p>Created at {{.CreatedAt}}</p>