From 077aeeeca8d8e6f17723af77656c364f9e999727 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 | 5 +++-- appview/pages/templates/repo/issues/issue.html | 2 +- appview/pages/templates/repo/issues/issues.html | 2 +- .../pages/templates/repo/pulls/fragments/pullHeader.html | 2 +- appview/pages/templates/repo/pulls/pulls.html | 2 +- appview/pages/templates/timeline.html | 8 ++++---- appview/pages/templates/user/fragments/picHandle.html | 4 ++-- appview/pages/templates/user/fragments/picHandleLink.html | 5 +++++ 8 files changed, 18 insertions(+), 12 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..0851187 100644 --- a/appview/pages/templates/layouts/topbar.html +++ b/appview/pages/templates/layouts/topbar.html @@ -38,12 +38,13 @@ - {{ 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 }}