diff options
author | Hester Gong <hestergong@gmail.com> | 2023-05-07 08:33:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-07 08:33:43 +0800 |
commit | 97b70a0cd40e8f73cdf6ba4397087b45061de3d8 (patch) | |
tree | 878155790a561bf97c1b2d7d9ccee7ea24c73b3b /templates/user | |
parent | 4daf40505a5f89747982ddd2f1df2a4001720846 (diff) | |
download | gitea-97b70a0cd40e8f73cdf6ba4397087b45061de3d8.tar.gz gitea-97b70a0cd40e8f73cdf6ba4397087b45061de3d8.zip |
Add org visibility label to non-organization's dashboard (#24558)
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/dashboard/repolist.tmpl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/user/dashboard/repolist.tmpl b/templates/user/dashboard/repolist.tmpl index 5d78970a58..44542d579d 100644 --- a/templates/user/dashboard/repolist.tmpl +++ b/templates/user/dashboard/repolist.tmpl @@ -35,6 +35,9 @@ const data = { textMyOrgs: {{.locale.Tr "home.my_orgs"}}, textNewOrg: {{.locale.Tr "new_org"}}, + + textOrgVisibilityLimited: {{.locale.Tr "org.settings.visibility.limited_shortname"}}, + textOrgVisibilityPrivate: {{.locale.Tr "org.settings.visibility.private_shortname"}}, }; {{if .Team}} @@ -42,7 +45,7 @@ data.teamId = {{.Team.ID}}; {{end}} {{if not .ContextUser.IsOrganization}} -data.organizations = [{{range .Orgs}}{'name': {{.Name}}, 'num_repos': {{.NumRepos}}},{{end}}]; +data.organizations = [{{range .Orgs}}{'name': {{.Name}}, 'num_repos': {{.NumRepos}}, 'org_visibility': {{.Visibility}}},{{end}}]; data.isOrganization = false; data.organizationsTotalCount = {{.UserOrgsCount}}; data.canCreateOrganization = {{.SignedUser.CanCreateOrganization}}; |