]> source.dussan.org Git - gitea.git/commitdiff
Fix missing username on dashboard context switch navbar (#13959)
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>
Sat, 12 Dec 2020 13:10:20 +0000 (14:10 +0100)
committerGitHub <noreply@github.com>
Sat, 12 Dec 2020 13:10:20 +0000 (14:10 +0100)
templates/user/dashboard/navbar.tmpl

index 25670f470b7ce43d5d28684179a6b679a5923af8..890b192f9a8c2b87304fbe87c0644a79d0b18179 100644 (file)
@@ -20,6 +20,7 @@
                                        <div class="scrolling menu items">
                                                <a class="{{if eq .ContextUser.ID .SignedUser.ID}}active selected{{end}} item" href="{{AppSubUrl}}/{{if .PageIsIssues}}issues{{else if .PageIsPulls}}pulls{{else if .PageIsMilestonesDashboard}}milestones{{end}}">
                                                        {{avatar .SignedUser}}
+                                                       {{.SignedUser.ShortName 20}}
                                                </a>
                                                {{range .Orgs}}
                                                        <a class="{{if eq $.ContextUser.ID .ID}}active selected{{end}} item" title="{{.Name}}" href="{{AppSubUrl}}/org/{{.Name}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else if $.PageIsMilestonesDashboard}}milestones{{else}}dashboard{{end}}">