···1-{{ define "knots/fragments/banner" }}
2<div class="w-full px-6 py-2 -z-15 bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200 border border-yellow-200 dark:border-yellow-800 rounded-b drop-shadow-sm">
3 A knot ({{range $i, $r := .Registrations}}{{if ne $i 0}}, {{end}}{{ $r.Domain }}{{ end }})
4 that you administer is presently read-only. Consider upgrading this knot to
···6 <a href="https://tangled.sh/@tangled.sh/core/blob/master/docs/migrations/knot-1.7.0.md">Click to read the upgrade guide</a>.
7</div>
8{{ end }}
9-
···1+{{ define "knots/fragments/bannerReadOnly" }}
2<div class="w-full px-6 py-2 -z-15 bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200 border border-yellow-200 dark:border-yellow-800 rounded-b drop-shadow-sm">
3 A knot ({{range $i, $r := .Registrations}}{{if ne $i 0}}, {{end}}{{ $r.Domain }}{{ end }})
4 that you administer is presently read-only. Consider upgrading this knot to
···6 <a href="https://tangled.sh/@tangled.sh/core/blob/master/docs/migrations/knot-1.7.0.md">Click to read the upgrade guide</a>.
7</div>
8{{ end }}
0
···1+{{ define "knots/fragments/bannerRequiresUpgrade" }}
2+<div class="prose mx-auto w-96 px-6 py-2 bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200 border border-yellow-200 dark:border-yellow-800 rounded-b drop-shadow-sm">
3+ The following knots that you administer require upgrade to be compatible with the latest version of Tangled:
4+ <ul>
5+ {{range $i, $r := .Registrations}}
6+ <li>{{ $r.Domain }}</li>
7+ {{ end }}
8+ </ul>
9+ Repositories hosted on these knots will not be accessible until upgraded.
10+ <a href="https://tangled.sh/@tangled.sh/core/blob/master/docs/migrations/knot-1.8.0.md">Click to read the upgrade guide</a>.
11+</div>
12+{{ end }}
+24
appview/pages/templates/repo/needsUpgrade.html
···000000000000000000000000
···1+{{ define "title" }}{{ .RepoInfo.FullName }}{{ end }}
2+3+{{ define "extrameta" }}
4+ {{ template "repo/fragments/meta" . }}
5+ {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo) }}
6+{{ end }}
7+8+{{ define "repoContent" }}
9+ <main>
10+ <div class="w-full h-full flex place-content-center {{ if .LoggedInUser }} bg-yellow-100 dark:bg-yellow-900 {{ end }}">
11+ <div class="py-6 w-fit flex flex-col gap-4 text-center">
12+ {{ if .LoggedInUser }}
13+ <p class=" text-yellow-800 dark:text-yellow-200 text-center">
14+ Your knot needs an upgrade. This repository is currently unavailable to users.
15+ </p>
16+ {{ else }}
17+ <p class="text-gray-400 dark:text-gray-500 py-6 text-center">
18+ The knot hosting this repository needs an upgrade. This repository is currently unavailable.
19+ </p>
20+ {{ end }}
21+ </div>
22+ </div>
23+ </main>
24+{{ end }}