diff options
author | Bagas Sanjaya <bagasdotme@gmail.com> | 2021-02-21 16:59:31 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-21 17:59:31 +0800 |
commit | 1f13229830637224ad5bc96eb957541033d9b7cc (patch) | |
tree | f6b986b7ca81306d8b680baa157b4485e01c3135 /templates/repo | |
parent | d6068c1cf705e307e660e711f2b3fe0f2769fbb8 (diff) | |
download | gitea-1f13229830637224ad5bc96eb957541033d9b7cc.tar.gz gitea-1f13229830637224ad5bc96eb957541033d9b7cc.zip |
Add helper descriptions on new repo page (#14591)
* Add helper descriptions on new repo page
Add helpers for:
* repo description
* .gitignore
* license
* README
* default branch
* signature trust model
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
* Oops, rename trust_model_helper
To match similar helper.
trust_model_helper_intro -> trust_model_helper
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/create.tmpl | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 8bb3584ec6..4aabcb6bb3 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -9,6 +9,9 @@ </h3> <div class="ui attached segment"> {{template "base/alert" .}} + + <p class="ui center">{{.i18n.Tr "repo.new_repo_helper" "/repo/migrate" | Safe}}</p> + {{if not .CanCreateRepo}} <div class="ui negative message"> <p>{{.i18n.Tr (TrN .i18n.Lang .MaxCreationLimit "repo.form.reach_limit_of_creation_1" "repo.form.reach_limit_of_creation_n") .MaxCreationLimit}}</p> @@ -59,7 +62,7 @@ </div> <div class="inline field {{if .Err_Description}}error{{end}}"> <label for="description">{{.i18n.Tr "repo.repo_desc"}}</label> - <textarea id="description" name="description">{{.description}}</textarea> + <textarea id="description" name="description" placeholder="{{.i18n.Tr "repo.repo_desc_helper"}}">{{.description}}</textarea> </div> <div class="inline field"> <label>{{.i18n.Tr "repo.template"}}</label> @@ -135,6 +138,7 @@ {{end}} </div> </div> + <span class="help">{{.i18n.Tr "repo.repo_gitignore_helper_desc"}}</span> </div> <div class="inline field"> <label>{{.i18n.Tr "repo.license"}}</label> @@ -148,6 +152,7 @@ {{end}} </div> </div> + <span class="help">{{.i18n.Tr "repo.license_helper_desc" "https://choosealicense.com/" | Str2html}}</span> </div> <div class="inline field"> @@ -161,6 +166,7 @@ {{end}} </div> </div> + <span class="help">{{.i18n.Tr "repo.readme_helper_desc"}}</span> </div> <div class="inline field"> <div class="ui checkbox" id="auto-init"> @@ -171,6 +177,7 @@ <div class="inline field"> <label for="default_branch">{{.i18n.Tr "repo.default_branch"}}</label> <input id="default_branch" name="default_branch" value="{{.default_branch}}" placeholder="{{.default_branch}}"> + <span class="help">{{.i18n.Tr "repo.default_branch_helper"}}</span> </div> <div class="inline field"> <label>{{.i18n.Tr "repo.settings.trust_model"}}</label> @@ -185,6 +192,15 @@ <div class="item" data-value="collaboratorcommitter">{{.i18n.Tr "repo.settings.trust_model.collaboratorcommitter"}}</div> </div> </div> + <div class="help"> + {{.i18n.Tr "repo.trust_model_helper"}} + <ul> + <li>{{.i18n.Tr "repo.trust_model_helper_collaborator"}}</li> + <li>{{.i18n.Tr "repo.trust_model_helper_committer"}}</li> + <li>{{.i18n.Tr "repo.trust_model_helper_collaborator_committer"}}</li> + <li>{{.i18n.Tr "repo.trust_model_helper_default"}}</li> + </ul> + </div> </div> <div class="inline field"> <label>{{.i18n.Tr "repo.template"}}</label> |