appview/pages: use tangled.org (not .sh) in empty repo instructions #911

merged
opened by octet-stream.net targeting master from octet-stream.net/core: thombles/empty-instructions

The instructions after setting up an empty repository on the tangled-hosted knot use the old hostname tangled.sh if you are using tangled's hosted knot:

https://misc.octet-stream.net/empty-repo-sh.png

This is not technically wrong but if you haven't set up your SSH key for the old domain in .ssh/config then the push fails and it's pretty confusing.

AFAICT this is a simple oversight. There is already an override in cloneDropdown.html:

    {{ $knot := .RepoInfo.Knot }}
    {{ if eq $knot "knot1.tangled.sh" }}
        {{ $knot = "tangled.org" }}
    {{ end }}

This file empty.html still shows

      {{ $knot := .RepoInfo.Knot }}
      {{ if eq $knot "knot1.tangled.sh" }}
          {{ $knot = "tangled.sh" }}
      {{ end }}

so this branch changes it to tangled.org.

Changed files
+1 -1
appview
pages
templates
repo
+1 -1
appview/pages/templates/repo/empty.html
··· 26 26 {{ else if (and .LoggedInUser (eq .LoggedInUser.Did .RepoInfo.OwnerDid)) }} 27 27 {{ $knot := .RepoInfo.Knot }} 28 28 {{ if eq $knot "knot1.tangled.sh" }} 29 - {{ $knot = "tangled.sh" }} 29 + {{ $knot = "tangled.org" }} 30 30 {{ end }} 31 31 <div class="w-full flex place-content-center"> 32 32 <div class="py-6 w-fit flex flex-col gap-4">