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
···
l.Info("checking domain")
+
registration, err := db.RegistrationByDomain(k.Db, domain)
+
if err != nil {
+
l.Error("failed to get registration for domain", "err", err)
+
fail()
+
return
+
}
+
if registration.ByDid != user.Did {
+
l.Error("unauthorized", "wantedDid", registration.ByDid, "gotDid", user.Did)
+
w.WriteHeader(http.StatusUnauthorized)
+
return
+
}
+
secret, err := db.GetRegistrationKey(k.Db, domain)
if err != nil {
l.Error("failed to get registration key for domain", "err", err)
+1 -1
appview/pages/templates/knots/index.html
···
<p class="dark:text-gray-300">
Knots are lightweight headless servers that enable users to host Git repositories with ease.
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.
-
By default, Tangled provides managed knots where you can host your repositories for free.
+
When creating a repository, you can choose a knot to store it on.
<a href="https://tangled.sh/@tangled.sh/core/blob/master/docs/knot-hosting.md">
Checkout the documentation if you're interested in self-hosting.
</a>
+1 -1
appview/pages/templates/user/fragments/repoCard.html
···
{{ end }}
{{ with .PullCount.Open }}
<div class="flex gap-1 items-center text-sm">
-
{{ i "git-pull-request-arrow" "w-3 h-3" }}
+
{{ i "git-pull-request" "w-3 h-3" }}
<span>{{ . }}</span>
</div>
{{ end }}