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