mirror of
https://github.com/go-gitea/gitea
synced 2024-11-22 00:11:11 +01:00
Fix some places which doesn't repsect org full name setting (#32243)
Partially fix #31345
This commit is contained in:
parent
696fbe6036
commit
896314c7a2
3 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{.ID}}</td>
|
<td>{{.ID}}</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="{{.HomeLink}}">{{.Name}}</a>
|
<a href="{{.HomeLink}}">{{if and DefaultShowFullName .FullName}}{{.FullName}} ({{.Name}}){{else}}{{.Name}}{{end}}</a>
|
||||||
{{if .Visibility.IsPrivate}}
|
{{if .Visibility.IsPrivate}}
|
||||||
<span class="text gold">{{svg "octicon-lock"}}</span>
|
<span class="text gold">{{svg "octicon-lock"}}</span>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -45,7 +45,7 @@ data.teamId = {{.Team.ID}};
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if not .ContextUser.IsOrganization}}
|
{{if not .ContextUser.IsOrganization}}
|
||||||
data.organizations = [{{range .Orgs}}{'name': {{.Name}}, 'num_repos': {{.NumRepos}}, 'org_visibility': {{.Visibility}}},{{end}}];
|
data.organizations = [{{range .Orgs}}{'name': {{.Name}}, 'full_name': {{.FullName}}, 'num_repos': {{.NumRepos}}, 'org_visibility': {{.Visibility}}},{{end}}];
|
||||||
data.isOrganization = false;
|
data.isOrganization = false;
|
||||||
data.organizationsTotalCount = {{.UserOrgsCount}};
|
data.organizationsTotalCount = {{.UserOrgsCount}};
|
||||||
data.canCreateOrganization = {{.SignedUser.CanCreateOrganization}};
|
data.canCreateOrganization = {{.SignedUser.CanCreateOrganization}};
|
||||||
|
|
|
@ -471,7 +471,7 @@ export default sfc; // activate the IDE's Vue plugin
|
||||||
<li class="tw-flex tw-items-center tw-py-2" v-for="org in organizations" :key="org.name">
|
<li class="tw-flex tw-items-center tw-py-2" v-for="org in organizations" :key="org.name">
|
||||||
<a class="repo-list-link muted" :href="subUrl + '/' + encodeURIComponent(org.name)">
|
<a class="repo-list-link muted" :href="subUrl + '/' + encodeURIComponent(org.name)">
|
||||||
<svg-icon name="octicon-organization" :size="16" class-name="repo-list-icon"/>
|
<svg-icon name="octicon-organization" :size="16" class-name="repo-list-icon"/>
|
||||||
<div class="text truncate">{{ org.name }}</div>
|
<div class="text truncate">{{ org.full_name ? `${org.full_name} (${org.name})` : org.name }}</div>
|
||||||
<div><!-- div to prevent underline of label on hover -->
|
<div><!-- div to prevent underline of label on hover -->
|
||||||
<span class="ui tiny basic label" v-if="org.org_visibility !== 'public'">
|
<span class="ui tiny basic label" v-if="org.org_visibility !== 'public'">
|
||||||
{{ org.org_visibility === 'limited' ? textOrgVisibilityLimited: textOrgVisibilityPrivate }}
|
{{ org.org_visibility === 'limited' ? textOrgVisibilityLimited: textOrgVisibilityPrivate }}
|
||||||
|
|
Loading…
Reference in a new issue