cmd/web/tmpl: Also conditionally render for showpaste template
This commit is contained in:
parent
0624533bed
commit
6fde9533d6
|
@ -4,10 +4,10 @@
|
||||||
|
|
||||||
{{if .UserInfo}}
|
{{if .UserInfo}}
|
||||||
{{if ne .PasterUserID .UserID}}
|
{{if ne .PasterUserID .UserID}}
|
||||||
<div class="float-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="float-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>
|
||||||
|
|
Loading…
Reference in a new issue