diff --git a/appview/pages/templates/repo/new.html b/appview/pages/templates/repo/new.html index 09cc5dd5..7f6cdda2 100644 --- a/appview/pages/templates/repo/new.html +++ b/appview/pages/templates/repo/new.html @@ -1,160 +1,176 @@ {{ define "title" }}new repo{{ end }} {{ define "content" }} -
-

Create a new repository

-

- Repositories contain a project's files and version history. -

+
+
+

Create a new repository

+

+ Repositories contain a project's files and version history. All + repositories are publicly accessible. +

+
+ {{ template "newRepoPanel" . }}
+{{ end }} + +{{ define "newRepoPanel" }} +
+ {{ template "newRepoForm" . }} +
+{{ end }} -
+{{ define "newRepoForm" }}
+ {{ template "step-1" . }} + {{ template "step-2" . }} -
- -
-
-
- 1 -
-
-
-
-
-
General
-
Basic repository information.
-
- -
- -
- -
- {{ if .LoggedInUser.Handle }} -
- {{ template "user/fragments/picHandle" .LoggedInUser.Handle }} - / -
- - {{ end }} - -
-

- Choose a unique, descriptive name for your repository. Use letters, numbers, and hyphens. -

-
- - -
- - -

- Optional. A short description to help others understand what your project does. -

-
-
-
+
+ +
+
+ + +{{ end }} + +{{ define "step-1" }} +
+
+ {{ template "numberCircle" 1 }} +
+ + +
+

General

+
Basic repository information.
+ +
+ {{ template "name" . }} + {{ template "description" . }}
+
+
+{{ end }} - -
-
-
- 2 -
-
-
-
-
Configuration
-
Repository settings and hosting.
-
- -
- -
- - -

- The primary branch where development happens. Common choices are "main" or "master". -

-
- - -
- -
- {{ range .Knots }} -
- - -
- {{ else }} -

no knots available.

- {{ end }} -
-

- A knot hosts repository data and handles Git operations. - You can also register your own knot. -

-
-
-
+{{ define "step-2" }} +
+
+ {{ template "numberCircle" 2 }} +
+ +
+

Configuration

+
Repository settings and hosting.
+ +
+ {{ template "defaultBranch" . }} + {{ template "knot" . }}
+
+{{ end }} - -
-
-
- All repositories are publicly accessible. -
- +{{ define "name" }} + +
+ +
+ -
+
+

+ Choose a unique, descriptive name for your repository. Use letters, numbers, and hyphens. +

+
+{{ end }} - -
+{{ define "description" }} + +
+ + +

+ Optional. A short description to help others understand what your project does. +

+
+{{ end }} + +{{ define "defaultBranch" }} + +
+ + +

+ The primary branch where development happens. Common choices are "main" or "master". +

+
+{{ end }} + +{{ define "knot" }} + +
+ +
+ {{ range .Knots }} +
+ + +
+ {{ else }} +

no knots available.

+ {{ end }} +
+

+ A knot hosts repository data and handles Git operations. + You can also register your own knot. +

+
+{{ end }} + +{{ define "numberCircle" }} +
+ {{.}} +
{{ end }}