···11+{{ define "knots/fragments/bannerRequiresUpgrade" }}
22+<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">
33+ The following knots that you administer require upgrade to be compatible with the latest version of Tangled:
44+ <ul>
55+ {{range $i, $r := .Registrations}}
66+ <li>{{ $r.Domain }}</li>
77+ {{ end }}
88+ </ul>
99+ Repositories hosted on these knots will not be accessible until upgraded.
1010+ <a href="https://tangled.sh/@tangled.sh/core/blob/master/docs/migrations/knot-1.8.0.md">Click to read the upgrade guide</a>.
1111+</div>
1212+{{ end }}
+24
appview/pages/templates/repo/needsUpgrade.html
···11+{{ define "title" }}{{ .RepoInfo.FullName }}{{ end }}
22+33+{{ define "extrameta" }}
44+ {{ template "repo/fragments/meta" . }}
55+ {{ template "repo/fragments/og" (dict "RepoInfo" .RepoInfo) }}
66+{{ end }}
77+88+{{ define "repoContent" }}
99+ <main>
1010+ <div class="w-full h-full flex place-content-center {{ if .LoggedInUser }} bg-yellow-100 dark:bg-yellow-900 {{ end }}">
1111+ <div class="py-6 w-fit flex flex-col gap-4 text-center">
1212+ {{ if .LoggedInUser }}
1313+ <p class=" text-yellow-800 dark:text-yellow-200 text-center">
1414+ Your knot needs an upgrade. This repository is currently unavailable to users.
1515+ </p>
1616+ {{ else }}
1717+ <p class="text-gray-400 dark:text-gray-500 py-6 text-center">
1818+ The knot hosting this repository needs an upgrade. This repository is currently unavailable.
1919+ </p>
2020+ {{ end }}
2121+ </div>
2222+ </div>
2323+ </main>
2424+{{ end }}