From ff9f33621a1313c8fe7cdcb9d23ecef08ca0ff41 Mon Sep 17 00:00:00 2001 From: uncenter Date: Sat, 12 Jul 2025 13:11:28 -0400 Subject: [PATCH] appview/pages: show user avatar in profile dropdown Renames user/fragments/picHandle to user/fragments/picHandleLink, since it now wraps a simpler user/fragments/picHandle that doesn't include the link. The topbar should now display the avatar next to the handle in the same style, without the link as it was before. --- appview/pages/templates/layouts/topbar.html | 7 ++++--- appview/pages/templates/repo/issues/issue.html | 2 +- appview/pages/templates/repo/issues/issues.html | 2 +- .../templates/repo/pulls/fragments/pullHeader.html | 2 +- appview/pages/templates/repo/pulls/pulls.html | 2 +- appview/pages/templates/timeline.html | 8 ++++---- .../pages/templates/user/fragments/picHandle.html | 14 ++++++-------- .../templates/user/fragments/picHandleLink.html | 5 +++++ 8 files changed, 23 insertions(+), 19 deletions(-) create mode 100644 appview/pages/templates/user/fragments/picHandleLink.html diff --git a/appview/pages/templates/layouts/topbar.html b/appview/pages/templates/layouts/topbar.html index 50d9ed9..d2db845 100644 --- a/appview/pages/templates/layouts/topbar.html +++ b/appview/pages/templates/layouts/topbar.html @@ -36,14 +36,15 @@ {{ define "dropDown" }}
- {{ didOrHandle .Did .Handle }} + {{ $user := didOrHandle .Did .Handle }} + {{ template "user/fragments/picHandle" $user }}
- profile + profile knots spindles settings diff --git a/appview/pages/templates/repo/issues/issue.html b/appview/pages/templates/repo/issues/issue.html index f26a536..f4035c2 100644 --- a/appview/pages/templates/repo/issues/issue.html +++ b/appview/pages/templates/repo/issues/issue.html @@ -33,7 +33,7 @@ opened by {{ $owner := didOrHandle .Issue.OwnerDid .IssueOwnerHandle }} - {{ template "user/fragments/picHandle" $owner }} + {{ template "user/fragments/picHandleLink" $owner }}