Merge pull request #7 from tailscale-dev/Xe/no-double-avatar

cmd/web: hide your profile pic if you authored the active paste
This commit is contained in:
Xe Iaso 2023-02-23 13:34:00 -05:00 committed by GitHub
commit ead2341c89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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