|
54 | 54 |
|
55 | 55 | {{if .RepoOwnerIsOrganization}}
|
56 | 56 | <h4 class="ui top attached header">
|
57 |
| - Teams |
| 57 | + {{$.i18n.Tr "repo.settings.teams"}} |
58 | 58 | </h4>
|
59 | 59 | {{ $allowedToChangeTeams := ( or (.Org.RepoAdminChangeTeamAccess) (.Permission.IsOwner)) }}
|
60 | 60 | {{if .Teams}}
|
|
66 | 66 | {{.Name}}
|
67 | 67 | </a>
|
68 | 68 | </div>
|
69 |
| - <div class="ui eight wide column poping up" data-content="Team's permission is set on the team setting page and can't be changed per repository"> |
| 69 | + <div class="ui eight wide column poping up" data-content="{{$.i18n.Tr "repo.settings.change_team_permission_tip"}}"> |
70 | 70 | {{svg "octicon-shield-lock" 16}}
|
71 | 71 | <div class="ui inline dropdown">
|
72 | 72 | <div class="text">{{if eq .Authorize 1}}{{$.i18n.Tr "repo.settings.collaboration.read"}}{{else if eq .Authorize 2}}{{$.i18n.Tr "repo.settings.collaboration.write"}}{{else if eq .Authorize 3}}{{$.i18n.Tr "repo.settings.collaboration.admin"}}{{else if eq .Authorize 4}}{{$.i18n.Tr "repo.settings.collaboration.owner"}}{{else}}{{$.i18n.Tr "repo.settings.collaboration.undefined"}}{{end}}</div>
|
|
79 | 79 | {{end}}
|
80 | 80 | </div>
|
81 | 81 | {{if $allowedToChangeTeams}}
|
82 |
| - <div class="ui two wide column {{if .IncludesAllRepositories}}poping up{{end}}" {{if .IncludesAllRepositories}}data-content="This team has access to all repositories and can't be removed."{{end}}> |
| 82 | + <div class="ui two wide column {{if .IncludesAllRepositories}}poping up{{end}}" {{if .IncludesAllRepositories}} data-content="{{$.i18n.Tr "repo.settings.delete_team_tip"}}"{{end}}> |
83 | 83 | <button class="ui red tiny button inline text-thin delete-button {{if .IncludesAllRepositories}}disabled{{end}}" data-url="{{$.Link}}/team/delete" data-id="{{.ID}}">
|
84 | 84 | {{$.i18n.Tr "repo.settings.delete_collaborator"}}
|
85 | 85 | </button>
|
|
96 | 96 | <div class="inline field ui left">
|
97 | 97 | <div id="search-team-box" class="ui search" data-org="{{.OrgName}}">
|
98 | 98 | <div class="ui input">
|
99 |
| - <input class="prompt" name="team" placeholder="Search teams..." autocomplete="off" autofocus required> |
| 99 | + <input class="prompt" name="team" placeholder="{{$.i18n.Tr "repo.settings.search_team"}}" autocomplete="off" autofocus required> |
100 | 100 | </div>
|
101 | 101 | </div>
|
102 | 102 | </div>
|
103 |
| - <button class="ui green button">Add Team</button> |
| 103 | + <button class="ui green button">{{$.i18n.Tr "repo.settings.add_team"}}</button> |
104 | 104 | </form>
|
105 | 105 | {{else}}
|
106 | 106 | <div class="item">
|
107 |
| - Changing team access for repository has been restricted to organization owner |
| 107 | + {{$.i18n.Tr "repo.settings.change_team_access_not_allowed"}} |
108 | 108 | </div>
|
109 | 109 | {{end}}
|
110 | 110 | </div>
|
|
0 commit comments