loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(ui/migrations): add placeholder to clarify empty description behavior (#7373)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7373
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
Co-authored-by: Mat <m.falkowski@dotmat.de>
Co-committed-by: Mat <m.falkowski@dotmat.de>

authored by

Mat
Mat
and committed by
0ko
8df8381f bf8bdf12

+14 -13
+1
options/locale/locale_en-US.ini
··· 1245 1245 migrate_items_merge_requests = Merge requests 1246 1246 migrate_items_releases = Releases 1247 1247 migrate_repo = Migrate repository 1248 + migrate.repo_desc_helper = Leave empty to import existing description 1248 1249 migrate.clone_address = Migrate / Clone from URL 1249 1250 migrate.clone_address_desc = The HTTP(S) or Git "clone" URL of an existing repository 1250 1251 migrate.github_token_desc = You can put one or more tokens with comma separated here to make migrating faster because of GitHub API rate limit. WARN: Abusing this feature may violate the service provider's policy and lead to account blocking.
+1 -1
templates/repo/migrate/codebase.tmpl
··· 109 109 </div> 110 110 <div class="inline field {{if .Err_Description}}error{{end}}"> 111 111 <label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label> 112 - <textarea id="description" name="description" maxlength="2048">{{.description}}</textarea> 112 + <textarea id="description" name="description" maxlength="2048" placeholder="{{ctx.Locale.Tr "repo.migrate.repo_desc_helper"}}">{{.description}}</textarea> 113 113 </div> 114 114 115 115 <div class="inline field">
+1 -1
templates/repo/migrate/gitea.tmpl
··· 121 121 </div> 122 122 <div class="inline field {{if .Err_Description}}error{{end}}"> 123 123 <label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label> 124 - <textarea id="description" name="description" maxlength="2048">{{.description}}</textarea> 124 + <textarea id="description" name="description" maxlength="2048" placeholder="{{ctx.Locale.Tr "repo.migrate.repo_desc_helper"}}">{{.description}}</textarea> 125 125 </div> 126 126 127 127 <div class="inline field">
+1 -1
templates/repo/migrate/github.tmpl
··· 123 123 </div> 124 124 <div class="inline field {{if .Err_Description}}error{{end}}"> 125 125 <label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label> 126 - <textarea id="description" name="description" maxlength="2048">{{.description}}</textarea> 126 + <textarea id="description" name="description" maxlength="2048" placeholder="{{ctx.Locale.Tr "repo.migrate.repo_desc_helper"}}">{{.description}}</textarea> 127 127 </div> 128 128 129 129 <div class="inline field">
+1 -1
templates/repo/migrate/gitlab.tmpl
··· 120 120 </div> 121 121 <div class="inline field {{if .Err_Description}}error{{end}}"> 122 122 <label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label> 123 - <textarea id="description" name="description" maxlength="2048">{{.description}}</textarea> 123 + <textarea id="description" name="description" maxlength="2048" placeholder="{{ctx.Locale.Tr "repo.migrate.repo_desc_helper"}}">{{.description}}</textarea> 124 124 </div> 125 125 126 126 <div class="inline field">
+1 -1
templates/repo/migrate/gogs.tmpl
··· 120 120 </div> 121 121 <div class="inline field {{if .Err_Description}}error{{end}}"> 122 122 <label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label> 123 - <textarea id="description" name="description" maxlength="2048">{{.description}}</textarea> 123 + <textarea id="description" name="description" maxlength="2048" placeholder="{{ctx.Locale.Tr "repo.migrate.repo_desc_helper"}}">{{.description}}</textarea> 124 124 </div> 125 125 126 126 <div class="inline field">
+1 -1
templates/repo/migrate/onedev.tmpl
··· 109 109 </div> 110 110 <div class="inline field {{if .Err_Description}}error{{end}}"> 111 111 <label for="description">{{ctx.Locale.Tr "repo.repo_desc"}}</label> 112 - <textarea id="description" name="description" maxlength="2048">{{.description}}</textarea> 112 + <textarea id="description" name="description" maxlength="2048" placeholder="{{ctx.Locale.Tr "repo.migrate.repo_desc_helper"}}">{{.description}}</textarea> 113 113 </div> 114 114 115 115 <div class="inline field">
+7 -7
tests/integration/repo_migration_ui_test.go
··· 30 30 2: { 31 31 "GitHub", 32 32 []string{"issues", "pull_requests", "labels", "milestones", "releases"}, 33 - false, 33 + true, 34 34 }, 35 35 3: { 36 36 "Gitea", 37 37 []string{"issues", "pull_requests", "labels", "milestones", "releases"}, 38 - false, 38 + true, 39 39 }, 40 40 4: { 41 41 "GitLab", 42 42 // Note: the checkbox "Merge requests" has name "pull_requests" 43 43 []string{"issues", "pull_requests", "labels", "milestones", "releases"}, 44 - false, 44 + true, 45 45 }, 46 46 5: { 47 47 "Gogs", 48 48 []string{"issues", "labels", "milestones"}, 49 - false, 49 + true, 50 50 }, 51 51 6: { 52 52 "OneDev", 53 53 []string{"issues", "pull_requests", "labels", "milestones"}, 54 - false, 54 + true, 55 55 }, 56 56 7: { 57 57 "GitBucket", ··· 62 62 "Codebase", 63 63 // Note: the checkbox "Merge requests" has name "pull_requests" 64 64 []string{"issues", "pull_requests", "labels", "milestones"}, 65 - false, 65 + true, 66 66 }, 67 67 9: { 68 68 "Forgejo", 69 69 []string{"issues", "pull_requests", "labels", "milestones", "releases"}, 70 - false, 70 + true, 71 71 }, 72 72 } 73 73