back interdiff of round #9 and #8

appview: implement follower and following pages for users #484

merged
opened by ptr.pet targeting master from ptr.pet/core: followers-following-list
ERROR
appview/db/profile.go

Failed to calculate interdiff for this file.

ERROR
appview/db/timeline.go

Failed to calculate interdiff for this file.

ERROR
appview/pages/funcmap.go

Failed to calculate interdiff for this file.

ERROR
appview/pages/pages.go

Failed to calculate interdiff for this file.

ERROR
appview/pages/templates/timeline.html

Failed to calculate interdiff for this file.

ERROR
appview/pages/templates/user/followers.html

Failed to calculate interdiff for this file.

ERROR
appview/pages/templates/user/following.html

Failed to calculate interdiff for this file.

ERROR
appview/pages/templates/user/fragments/follow.html

Failed to calculate interdiff for this file.

ERROR
appview/pages/templates/user/fragments/followCard.html

Failed to calculate interdiff for this file.

ERROR
appview/pages/templates/user/fragments/profileCard.html

Failed to calculate interdiff for this file.

ERROR
appview/state/profile.go

Failed to calculate interdiff for this file.

REVERTED
appview/state/router.go
···
r.With(mw.ResolveIdent()).Route("/{user}", func(r chi.Router) {
r.Get("/", s.Profile)
-
r.Get("/followers", s.followersPage)
-
r.Get("/following", s.followingPage)
r.Get("/feed.atom", s.AtomFeedPage)
r.With(mw.ResolveRepo()).Route("/{repo}", func(r chi.Router) {
···
r.With(mw.ResolveIdent()).Route("/{user}", func(r chi.Router) {
r.Get("/", s.Profile)
r.Get("/feed.atom", s.AtomFeedPage)
r.With(mw.ResolveRepo()).Route("/{repo}", func(r chi.Router) {
ERROR
appview/strings/strings.go

Failed to calculate interdiff for this file.

NEW
appview/pages/templates/user/repos.html
···
{{ define "extrameta" }}
<meta property="og:title" content="{{ or .Card.UserHandle .Card.UserDid }}'s repos" />
<meta property="og:type" content="object" />
-
<meta property="og:url" content="https://tangled.sh/{{ or .Card.UserHandle .Card.UserDid }}/repos" />
<meta property="og:description" content="{{ or .Card.Profile.Description .Card.UserHandle .Card.UserDid }}" />
{{ end }}
···
{{ define "extrameta" }}
<meta property="og:title" content="{{ or .Card.UserHandle .Card.UserDid }}'s repos" />
<meta property="og:type" content="object" />
+
<meta property="og:url" content="https://tangled.sh/{{ or .Card.UserHandle .Card.UserDid }}?tab=repos" />
<meta property="og:description" content="{{ or .Card.Profile.Description .Card.UserHandle .Card.UserDid }}" />
{{ end }}