tangled
alpha
login
or
join now
dzming.li
/
core
0
fork
atom
A vibe coded tangled fork which supports pijul.
0
fork
atom
overview
issues
pulls
pipelines
proper titles for repos + better issue heirarchy
Anirudh Oppiliappan
1 year ago
c611df54
1ab02721
+43
-16
9 changed files
expand all
collapse all
unified
split
appview
pages
templates
repo
blob.html
commit.html
empty.html
index.html
issues
issue.html
issues.html
log.html
settings.html
tree.html
+2
appview/pages/templates/repo/blob.html
···
1
1
+
{{ define "title" }}{{ .Path }} at {{ .Ref }} · {{ .RepoInfo.FullName }}{{ end }}
2
2
+
1
3
{{ define "repoContent" }}
2
4
{{ $lines := split .Contents }}
3
5
{{ $tot_lines := len $lines }}
+1
-1
appview/pages/templates/repo/commit.html
···
1
1
-
{{ define "title" }} commit {{ .Diff.Commit.This }} {{ end }}
1
1
+
{{ define "title" }} commit {{ .Diff.Commit.This }} · {{ .RepoInfo.FullName }} {{ end }}
2
2
3
3
{{ define "repoContent" }}
4
4
+2
appview/pages/templates/repo/empty.html
···
1
1
+
{{ define "title" }}{{ .RepoInfo.FullName }}{{ end }}
2
2
+
1
3
{{ define "repoContent" }}
2
4
<main>
3
5
<p class="text-center pt-5 text-gray-400">
+2
appview/pages/templates/repo/index.html
···
1
1
+
{{ define "title" }}{{ .RepoInfo.FullName }} at {{ .Ref }}{{ end }}
2
2
+
1
3
{{ define "repoContent" }}
2
4
<main>
3
5
<div class="flex justify-between pb-5">
+26
-9
appview/pages/templates/repo/issues/issue.html
···
21
21
{{ end }}
22
22
23
23
24
24
-
<section class="m-2">
24
24
+
<section>
25
25
<div class="flex items-center gap-2">
26
26
<div
27
27
id="state"
···
36
36
<span class="text-gray-400 text-sm">
37
37
opened by
38
38
{{ $owner := didOrHandle .Issue.OwnerDid .IssueOwnerHandle }}
39
39
-
<a href="/{{ $owner }}" class="no-underline hover:underline">{{ $owner }}</a>
39
39
+
<a href="/{{ $owner }}" class="no-underline hover:underline"
40
40
+
>{{ $owner }}</a
41
41
+
>
40
42
</span>
41
43
</div>
42
44
43
45
{{ if .Issue.Body }}
44
44
-
<article id="body" class="mt-8">
46
46
+
<article id="body" class="mt-8 border border-gray-300 px-4 py-6">
45
47
{{ .Issue.Body | escapeHtml }}
46
48
</article>
47
49
{{ end }}
48
50
</section>
49
51
50
50
-
<section id="comments" class="mt-8 space-y-4">
51
51
-
{{ range .Comments }}
52
52
+
<hr class="my-10" />
53
53
+
54
54
+
<section id="comments" class="mt-8 space-y-4 relative">
55
55
+
{{ range $index, $comment := .Comments }}
52
56
<div
53
57
id="comment-{{ .CommentId }}"
54
54
-
class="border border-gray-200 p-4"
58
58
+
class="border border-gray-200 p-4 relative"
55
59
>
60
60
+
{{ if ne $index 0 }}
61
61
+
<div
62
62
+
class="absolute left-8 -top-4 w-px h-4 bg-gray-200"
63
63
+
></div>
64
64
+
{{ end }}
56
65
<div class="flex items-center gap-2 mb-2">
57
66
{{ $owner := index $.DidHandleMap .OwnerDid }}
58
67
<span class="text-gray-400 text-sm">
59
59
-
<a href="{{ $owner }}" class="no-underline hover:underline">{{ $owner }}</a>
68
68
+
<a
69
69
+
href="{{ $owner }}"
70
70
+
class="no-underline hover:underline"
71
71
+
>{{ $owner }}</a
72
72
+
>
60
73
</span>
61
61
-
<span class="text-gray-500 text-sm">
74
74
+
<a
75
75
+
href="#{{ .CommentId }}"
76
76
+
class="text-gray-500 text-sm hover:text-gray-500 hover:underline no-underline"
77
77
+
id="{{ .CommentId }}"
78
78
+
>
62
79
{{ .Created | timeFmt }}
63
63
-
</span>
80
80
+
</a>
64
81
</div>
65
82
<div class="">
66
83
{{ nl2br .Body }}
+6
-3
appview/pages/templates/repo/issues/issues.html
···
1
1
-
{{ define "title" }}Issues · {{ .RepoInfo.FullName }}{{ end }}
1
1
+
{{ define "title" }}issues · {{ .RepoInfo.FullName }}{{ end }}
2
2
3
3
{{ define "repoContent" }}
4
4
<div class="flex justify-between items-center">
5
5
-
<h1 class="m-0">Issues</h1>
6
5
<div class="error" id="issues"></div>
7
6
<a
8
7
href="/{{ .RepoInfo.FullName }}/issues/new"
···
40
39
<span class="before:content-['·']">
41
40
opened by
42
41
{{ $owner := index $.DidHandleMap .OwnerDid }}
43
43
-
<a href="{{ $owner }}" class="no-underline hover:underline">{{ $owner }}</a>
42
42
+
<a
43
43
+
href="{{ $owner }}"
44
44
+
class="no-underline hover:underline"
45
45
+
>{{ $owner }}</a
46
46
+
>
44
47
</span>
45
48
</div>
46
49
</div>
+1
-2
appview/pages/templates/repo/log.html
···
1
1
-
{{ define "title" }}Commits · {{ .RepoInfo.FullName }}{{ end }}
1
1
+
{{ define "title" }}commits · {{ .RepoInfo.FullName }}{{ end }}
2
2
3
3
{{ define "repoContent" }}
4
4
5
5
-
<h1>Commits</h1>
6
5
<main>
7
6
<div id="commit-log" class="flex-1">
8
7
{{ range .Commits }}
+1
-1
appview/pages/templates/repo/settings.html
···
1
1
-
{{ define "title" }}Settings · {{ .RepoInfo.FullName }}{{ end }}
1
1
+
{{ define "title" }}settings · {{ .RepoInfo.FullName }}{{ end }}
2
2
{{ define "repoContent" }}
3
3
<header class="font-bold text-sm mb-4">COLLABORATORS</header>
4
4
+2
appview/pages/templates/repo/tree.html
···
1
1
+
{{ define "title"}}{{ range .BreadCrumbs }}{{ index . 0}}/{{ end }} at {{ .Ref }} · {{ .RepoInfo.FullName }}{{ end }}
2
2
+
1
3
{{define "repoContent"}}
2
4
<main>
3
5
<div class="tree">