|
14 | 14 | :uid="uid"
|
15 | 15 | :more-repos-link="'{{.ContextUser.HomeLink}}'"
|
16 | 16 | {{if not .ContextUser.IsOrganization}}
|
17 |
| - :orgs="[ |
| 17 | + :organizations="[ |
18 | 18 | {{range .ContextUser.Orgs}}
|
19 | 19 | {name: '{{.Name}}', num_repos: '{{.NumRepos}}'},
|
20 | 20 | {{end}}
|
21 | 21 | ]"
|
22 |
| - :is-org="false" |
23 |
| - :orgs-total="{{.ContextUser.GetOrganizationCount}}" |
24 |
| - :can-create-org="{{.SignedUser.CanCreateOrganization}}" |
| 22 | + :is-organization="false" |
| 23 | + :organizations-total-count="{{.ContextUser.GetOrganizationCount}}" |
| 24 | + :can-create-organization="{{.SignedUser.CanCreateOrganization}}" |
25 | 25 | {{end}}
|
26 | 26 | inline-template
|
27 | 27 | v-cloak
|
28 | 28 | >
|
29 | 29 | <div>
|
30 |
| - <div v-if="!isOrg" class="ui two item stackable tabable menu"> |
| 30 | + <div v-if="!isOrganization" class="ui two item stackable tabable menu"> |
31 | 31 | <a :class="{item: true, active: tab === 'repos'}" @click="changeTab('repos')">{{.i18n.Tr "repository"}}</a>
|
32 |
| - <a :class="{item: true, active: tab === 'orgs'}" @click="changeTab('orgs')">{{.i18n.Tr "organization"}}</a> |
| 32 | + <a :class="{item: true, active: tab === 'organizations'}" @click="changeTab('organizations')">{{.i18n.Tr "organization"}}</a> |
33 | 33 | </div>
|
34 | 34 | <div v-show="tab === 'repos'" class="ui tab active list">
|
35 | 35 | <h4 class="ui top attached header">
|
36 |
| - {{.i18n.Tr "home.my_repos"}} <span class="ui grey label">${reposTotal}</span> |
| 36 | + {{.i18n.Tr "home.my_repos"}} <span class="ui grey label">${reposTotalCount}</span> |
37 | 37 | <div class="ui right">
|
38 | 38 | <a class="poping up" :href="suburl + '/repo/create>'" data-content="{{.i18n.Tr "new_repo"}}" data-variation="tiny inverted" data-position="left center">
|
39 | 39 | <i class="plus icon"></i>
|
|
65 | 65 | </span>
|
66 | 66 | </a>
|
67 | 67 | </li>
|
68 |
| - <li v-if="repos.length < reposTotal"> |
| 68 | + <li v-if="repos.length < reposTotalCount"> |
69 | 69 | <a :href="moreReposLink">{{.i18n.Tr "home.show_more_repos"}}</a>
|
70 | 70 | </li>
|
71 | 71 | </ul>
|
72 | 72 | </div>
|
73 | 73 | </div>
|
74 |
| - <div v-if="!isOrg" v-show="tab === 'orgs'" class="ui tab active list"> |
| 74 | + <div v-if="!isOrganization" v-show="tab === 'organizations'" class="ui tab active list"> |
75 | 75 | <h4 class="ui top attached header">
|
76 |
| - {{.i18n.Tr "home.my_orgs"}} <span class="ui grey label">${orgsTotal}</span> |
77 |
| - <div v-if="canCreateOrg" class="ui right"> |
| 76 | + {{.i18n.Tr "home.my_orgs"}} <span class="ui grey label">${organizationsTotalCount}</span> |
| 77 | + <div v-if="canCreateOrganization" class="ui right"> |
78 | 78 | <a class="poping up" :href="suburl + '/org/create'" data-content="{{.i18n.Tr "new_org"}}" data-variation="tiny inverted" data-position="left center">
|
79 | 79 | <i class="plus icon"></i>
|
80 | 80 | <span class="sr-only">{{.i18n.Tr "new_org"}}</span>
|
|
83 | 83 | </h4>
|
84 | 84 | <div class="ui attached table segment">
|
85 | 85 | <ul class="repo-owner-name-list">
|
86 |
| - <li v-for="org in orgs"> |
| 86 | + <li v-for="org in organizations"> |
87 | 87 | <a :href="suburl + '/' + org.name">
|
88 | 88 | <i class="octicon octicon-organization"></i>
|
89 | 89 | <strong class="text truncate item-name">${org.name}</strong>
|
|
0 commit comments