Monorepo for Tangled tangled.org

appview: pages/templates/repo/fragments: replace k1.t.s -> t.s in template

authored by anirudh.fi and committed by Tangled 8949352c 608444e7

Changed files
+6 -8
appview
pages
templates
repo
state
+6 -2
appview/pages/templates/repo/fragments/cloneInstructions.html
··· 1 1 {{ define "repo/fragments/cloneInstructions" }} 2 + {{ $knot := .RepoInfo.Knot }} 3 + {{ if eq $knot "knot1.tangled.sh" }} 4 + {{ $knot = "tangled.sh" }} 5 + {{ end }} 2 6 <section 3 7 class="mt-4 p-6 rounded bg-white dark:bg-gray-800 dark:text-white w-full mx-auto overflow-auto flex flex-col gap-4" 4 8 > ··· 7 11 <div class="md:pl-4 overflow-x-auto whitespace-nowrap"> 8 12 <code class="dark:text-gray-100" 9 13 >git remote add origin 10 - git@{{ .RepoInfo.Knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code 14 + git@{{ $knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code 11 15 > 12 16 </div> 13 17 </div> ··· 36 40 <div class="overflow-x-auto whitespace-nowrap flex-1"> 37 41 <code class="dark:text-gray-100" 38 42 >git clone 39 - git@{{ .RepoInfo.Knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code 43 + git@{{ $knot }}:{{ .RepoInfo.OwnerHandle }}/{{ .RepoInfo.Name }}</code 40 44 > 41 45 </div> 42 46 </div>
-4
appview/state/repo.go
··· 1078 1078 } 1079 1079 } 1080 1080 1081 - if knot == "knot1.tangled.sh" { 1082 - knot = "tangled.sh" 1083 - } 1084 - 1085 1081 repoInfo := repoinfo.RepoInfo{ 1086 1082 OwnerDid: f.OwnerDid(), 1087 1083 OwnerHandle: f.OwnerHandle(),
-2
go.sum
··· 130 130 github.com/ipfs/bbloom v0.0.4/go.mod h1:cS9YprKXpoZ9lT0n/Mw/a6/aFV6DTjTLYHeA+gyqMG0= 131 131 github.com/ipfs/go-block-format v0.2.0 h1:ZqrkxBA2ICbDRbK8KJs/u0O3dlp6gmAuuXUJNiW1Ycs= 132 132 github.com/ipfs/go-block-format v0.2.0/go.mod h1:+jpL11nFx5A/SPpsoBn6Bzkra/zaArfSmsknbPMYgzM= 133 - github.com/ipfs/go-cid v0.4.1 h1:A/T3qGvxi4kpKWWcPC/PgbvDA2bjVLO7n4UeVwnbs/s= 134 - github.com/ipfs/go-cid v0.4.1/go.mod h1:uQHwDeX4c6CtyrFwdqyhpNcxVewur1M7l7fNU7LKwZk= 135 133 github.com/ipfs/go-cid v0.5.0 h1:goEKKhaGm0ul11IHA7I6p1GmKz8kEYniqFopaB5Otwg= 136 134 github.com/ipfs/go-cid v0.5.0/go.mod h1:0L7vmeNXpQpUS9vt+yEARkJ8rOg43DF3iPgn4GIN0mk= 137 135 github.com/ipfs/go-datastore v0.6.0 h1:JKyz+Gvz1QEZw0LsX1IBn+JFCJQH4SJVFtM4uWU0Myk=