this repo has no description

appview/pages: repo fullname

Changed files
+10 -5
appview
pages
+5
appview/pages/pages.go
··· 7 "io" 8 "io/fs" 9 "log" 10 "strings" 11 12 "github.com/sotangled/tangled/appview/auth" ··· 139 } else { 140 return r.OwnerDid 141 } 142 } 143 144 type RepoIndexParams struct {
··· 7 "io" 8 "io/fs" 9 "log" 10 + "path" 11 "strings" 12 13 "github.com/sotangled/tangled/appview/auth" ··· 140 } else { 141 return r.OwnerDid 142 } 143 + } 144 + 145 + func (r RepoInfo) FullName() string { 146 + return path.Join(r.OwnerWithAt(), r.Name) 147 } 148 149 type RepoIndexParams struct {
+3 -3
appview/pages/templates/repo/commit.html
··· 2 3 {{ define "content" }} 4 5 - {{ $repo := .RepoInfo.Name }} 6 {{ $commit := .Diff.Commit }} 7 {{ $stat := .Diff.Stat }} 8 {{ $diff := .Diff.Diff }} ··· 17 <div> 18 <strong>commit</strong> 19 <p><a href="/{{ $repo }}/commit/{{ $commit.This }}" class="commit-hash"> 20 - {{ $commit.This }} 21 </a> 22 </p> 23 </div> ··· 26 <div> 27 <strong>parent</strong> 28 <p><a href="/{{ $repo }}/commit/{{ $commit.Parent }}" class="commit-hash"> 29 - {{ $commit.Parent }} 30 </a></p> 31 </div> 32
··· 2 3 {{ define "content" }} 4 5 + {{ $repo := .RepoInfo.FullName }} 6 {{ $commit := .Diff.Commit }} 7 {{ $stat := .Diff.Stat }} 8 {{ $diff := .Diff.Diff }} ··· 17 <div> 18 <strong>commit</strong> 19 <p><a href="/{{ $repo }}/commit/{{ $commit.This }}" class="commit-hash"> 20 + {{ slice $commit.This 0 8 }} 21 </a> 22 </p> 23 </div> ··· 26 <div> 27 <strong>parent</strong> 28 <p><a href="/{{ $repo }}/commit/{{ $commit.Parent }}" class="commit-hash"> 29 + {{ slice $commit.Parent 0 8 }} 30 </a></p> 31 </div> 32
+1 -1
appview/pages/templates/repo/index.html
··· 9 <div class="log"> 10 {{ range .Commits }} 11 <div> 12 - <div><a href="/{{ $.RepoInfo.OwnerWithAt }}/{{ $.RepoInfo.Name }}/commit/{{ .Hash.String }}" class="commit-hash">{{ slice .Hash.String 0 8 }}</a></div> 13 <pre>{{ .Message }}</pre> 14 </div> 15 <div class="commit-info">
··· 9 <div class="log"> 10 {{ range .Commits }} 11 <div> 12 + <div><a href="/{{ $.RepoInfo.FullName }}/commit/{{ .Hash.String }}" class="commit-hash">{{ slice .Hash.String 0 8 }}</a></div> 13 <pre>{{ .Message }}</pre> 14 </div> 15 <div class="commit-info">
+1 -1
appview/pages/templates/repo/log.html
··· 9 <div class="log"> 10 {{ range .Commits }} 11 <div> 12 - <div><a href="/{{ $.RepoInfo.OwnerWithAt }}/{{ $.RepoInfo.Name }}/commit/{{ .Hash.String }}" class="commit-hash">{{ slice .Hash.String 0 8 }}</a></div> 13 <pre>{{ .Message }}</pre> 14 </div> 15 <div class="commit-info">
··· 9 <div class="log"> 10 {{ range .Commits }} 11 <div> 12 + <div><a href="/{{ $.RepoInfo.FullName }}/commit/{{ .Hash.String }}" class="commit-hash">{{ slice .Hash.String 0 8 }}</a></div> 13 <pre>{{ .Message }}</pre> 14 </div> 15 <div class="commit-info">