Show display names in forums and comments

This commit is contained in:
Noah Petherbridge 2023-12-21 15:09:23 -08:00
parent 13775b9722
commit 8863daac60
3 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@
{{template "avatar-64x64" .Comment.User}} {{template "avatar-64x64" .Comment.User}}
</a> </a>
</div> </div>
<a href="/u/{{.Comment.User.Username}}">{{.Comment.User.Username}}</a> <a href="/u/{{.Comment.User.Username}}">{{.Comment.User.NameOrUsername}}</a>
</div> </div>
<div class="column content pt-1 pb-0"> <div class="column content pt-1 pb-0">
<a href="/forum/thread/{{.ID}}"> <a href="/forum/thread/{{.ID}}">

View File

@ -111,7 +111,7 @@
{{template "avatar-96x96" $c.User}} {{template "avatar-96x96" $c.User}}
</a> </a>
</div> </div>
<a href="/u/{{$c.User.Username}}">{{$c.User.Username}}</a> <a href="/u/{{$c.User.Username}}">{{$c.User.NameOrUsername}}</a>
{{if $c.User.IsAdmin}} {{if $c.User.IsAdmin}}
<div class="is-size-7 mt-1"> <div class="is-size-7 mt-1">
<span class="tag is-danger is-light"> <span class="tag is-danger is-light">

View File

@ -217,7 +217,7 @@
{{template "avatar-96x96" .User}} {{template "avatar-96x96" .User}}
</a> </a>
</div> </div>
<a href="/u/{{.User.Username}}">{{.User.Username}}</a> <a href="/u/{{.User.Username}}">{{.User.NameOrUsername}}</a>
</div> </div>
<div class="column content"> <div class="column content">