diff --git a/appview/commitverify/verify.go b/appview/commitverify/verify.go index eace4cb1..e3066df6 100644 --- a/appview/commitverify/verify.go +++ b/appview/commitverify/verify.go @@ -1,7 +1,6 @@ package commitverify import ( - "fmt" "log" "github.com/go-git/go-git/v5/plumbing/object" @@ -74,7 +73,6 @@ func GetVerifiedCommits(e db.Execer, emailToDid map[string]string, ndCommits []t if err != nil { log.Println("error computing ssh fingerprint:", err) } - fmt.Println(fp) vc := verifiedCommit{fingerprint: fp, hash: c.This} vcs[vc] = struct{}{} diff --git a/appview/pages/pages.go b/appview/pages/pages.go index 67a75833..5b342d92 100644 --- a/appview/pages/pages.go +++ b/appview/pages/pages.go @@ -15,6 +15,7 @@ import ( "path/filepath" "strings" + "tangled.sh/tangled.sh/core/appview/commitverify" "tangled.sh/tangled.sh/core/appview/config" "tangled.sh/tangled.sh/core/appview/db" "tangled.sh/tangled.sh/core/appview/oauth" @@ -414,7 +415,7 @@ type RepoIndexParams struct { HTMLReadme template.HTML Raw bool EmailToDidOrHandle map[string]string - VerifiedCommits map[string]bool + VerifiedCommits commitverify.VerifiedCommits Languages *types.RepoLanguageResponse types.RepoIndexResponse } @@ -453,7 +454,7 @@ type RepoLogParams struct { types.RepoLogResponse Active string EmailToDidOrHandle map[string]string - VerifiedCommits map[string]bool + VerifiedCommits commitverify.VerifiedCommits } func (p *Pages) RepoLog(w io.Writer, params RepoLogParams) error { @@ -466,7 +467,9 @@ type RepoCommitParams struct { RepoInfo repoinfo.RepoInfo Active string EmailToDidOrHandle map[string]string - Verified bool + + // singular because it's always going to be just one + VerifiedCommit commitverify.VerifiedCommits types.RepoCommitResponse } diff --git a/appview/pages/templates/repo/commit.html b/appview/pages/templates/repo/commit.html index 926711a2..8571d1b3 100644 --- a/appview/pages/templates/repo/commit.html +++ b/appview/pages/templates/repo/commit.html @@ -46,13 +46,26 @@ {{ end }}
- {{ if .Verified }} - -