forked from tangled.org/core
this repo has no description

appview: minor edits to copy text

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li 8af27e31 6ea25d1b

verified
Changed files
+14 -2
appview
knots
pages
templates
knots
user
fragments
+12
appview/knots/knots.go
··· 141 141 142 142 l.Info("checking domain") 143 143 144 + registration, err := db.RegistrationByDomain(k.Db, domain) 145 + if err != nil { 146 + l.Error("failed to get registration for domain", "err", err) 147 + fail() 148 + return 149 + } 150 + if registration.ByDid != user.Did { 151 + l.Error("unauthorized", "wantedDid", registration.ByDid, "gotDid", user.Did) 152 + w.WriteHeader(http.StatusUnauthorized) 153 + return 154 + } 155 + 144 156 secret, err := db.GetRegistrationKey(k.Db, domain) 145 157 if err != nil { 146 158 l.Error("failed to get registration key for domain", "err", err)
+1 -1
appview/pages/templates/knots/index.html
··· 19 19 <p class="dark:text-gray-300"> 20 20 Knots are lightweight headless servers that enable users to host Git repositories with ease. 21 21 Knots are designed for either single or multi-tenant use which is perfect for self-hosting on a Raspberry Pi at home, or larger “community” servers. 22 - By default, Tangled provides managed knots where you can host your repositories for free. 22 + When creating a repository, you can choose a knot to store it on. 23 23 <a href="https://tangled.sh/@tangled.sh/core/blob/master/docs/knot-hosting.md"> 24 24 Checkout the documentation if you're interested in self-hosting. 25 25 </a>
+1 -1
appview/pages/templates/user/fragments/repoCard.html
··· 47 47 {{ end }} 48 48 {{ with .PullCount.Open }} 49 49 <div class="flex gap-1 items-center text-sm"> 50 - {{ i "git-pull-request-arrow" "w-3 h-3" }} 50 + {{ i "git-pull-request" "w-3 h-3" }} 51 51 <span>{{ . }}</span> 52 52 </div> 53 53 {{ end }}