From ec0558e5eccf59e42dacb8bc48290df6942e3412 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sat, 1 Mar 2025 16:05:27 +0000 Subject: [PATCH] resolve dids in profile page --- appview/pages/pages.go | 1 + appview/pages/templates/layouts/repobase.html | 9 ++++++--- appview/pages/templates/user/profile.html | 4 ++-- appview/state/repo.go | 2 -- appview/state/state.go | 14 ++++++++++++++ tailwind.config.js | 2 +- 6 files changed, 24 insertions(+), 8 deletions(-) diff --git a/appview/pages/pages.go b/appview/pages/pages.go index ad046ef5..9ef2f2bb 100644 --- a/appview/pages/pages.go +++ b/appview/pages/pages.go @@ -145,6 +145,7 @@ type ProfilePageParams struct { CollaboratingRepos []db.Repo ProfileStats ProfileStats FollowStatus db.FollowStatus + DidHandleMap map[string]string } type ProfileStats struct { diff --git a/appview/pages/templates/layouts/repobase.html b/appview/pages/templates/layouts/repobase.html index 4220dd1d..770e2e46 100644 --- a/appview/pages/templates/layouts/repobase.html +++ b/appview/pages/templates/layouts/repobase.html @@ -29,10 +29,13 @@ hx-boost="true" >
{{ $key }}
diff --git a/appview/pages/templates/user/profile.html b/appview/pages/templates/user/profile.html index c6d69b09..fb34b56f 100644 --- a/appview/pages/templates/user/profile.html +++ b/appview/pages/templates/user/profile.html @@ -58,8 +58,8 @@ class="py-4 px-6 drop-shadow-sm rounded bg-white" >
- - @{{ .Did }}/{{ .Name }} + + {{ index $.DidHandleMap .Did }}/{{ .Name }}