mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-29 14:15:55 +00:00
Add org visibility label to non-organization's dashboard (#24558)
This commit is contained in:
parent
4daf40505a
commit
97b70a0cd4
2 changed files with 7 additions and 1 deletions
|
@ -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}};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue