| 1 | {{ define "page" -}} |
| 2 | <section class="shithub-repo-page"> |
| 3 | {{ template "repo-header" . }} |
| 4 | <section class="shithub-repo-empty"> |
| 5 | {{ if .Repo.Description }}<p class="shithub-repo-empty-desc">{{ .Repo.Description }}</p>{{ end }} |
| 6 | |
| 7 | <div class="shithub-repo-empty-quickstart"> |
| 8 | <h2>Quick setup — if you've done this kind of thing before</h2> |
| 9 | <p>Get started by setting up a new repository on your machine and pushing it here.</p> |
| 10 | |
| 11 | <div class="shithub-repo-empty-clone"> |
| 12 | <label> |
| 13 | <span>HTTPS</span> |
| 14 | <input type="text" readonly value="{{ .HTTPSCloneURL }}" onclick="this.select()"> |
| 15 | </label> |
| 16 | {{ if .SSHEnabled }} |
| 17 | <label> |
| 18 | <span>SSH</span> |
| 19 | <input type="text" readonly value="{{ .SSHCloneURL }}" onclick="this.select()"> |
| 20 | </label> |
| 21 | {{ end }} |
| 22 | </div> |
| 23 | |
| 24 | <h3>…or push an existing repository from the command line</h3> |
| 25 | <pre><code>git remote add origin {{ .HTTPSCloneURL }} |
| 26 | git branch -M {{ .DefaultBranch }} |
| 27 | git push -u origin {{ .DefaultBranch }}</code></pre> |
| 28 | </div> |
| 29 | </section> |
| 30 | </section> |
| 31 | {{- end }} |