Also conditionally render for showpaste template #1

Closed
arch wants to merge 2 commits from conditional-profile-pic into main
Showing only changes of commit 020adfd213 - Show all commits

View file

@ -12,7 +12,7 @@
<main>
<nav>
<a href="/">tclip</a>{{if .UserInfo}} - <a href="/paste/list">List</a> - <a href="/help">Help</a>{{end}}
{{if .UserInfo}}<div class="right">{{.UserInfo.DisplayName}} <img style="width:32px;height:32px" src="{{.UserInfo.ProfilePicURL}}" /></div>{{end}}
{{if .UserInfo}}<div class="right">{{.UserInfo.DisplayName}} {{if .UserInfo.ProfilePicURL}}<img style="width:32px;height:32px" src="{{.UserInfo.ProfilePicURL}}" />{{end}}</div>{{end}}
</nav>
<h1>{{.Title}}</h1>