|
2 | 2 | <h4 class="ui top attached header"> |
3 | 3 | {{ctx.Locale.Tr "actions.general.collaborative_owners_management"}} |
4 | 4 | </h4> |
5 | | - {{if .CollaborativeOwners}} |
| 5 | + {{if not .Repository.IsPrivate}} |
| 6 | + <div class="ui attached segment"> |
| 7 | + {{ctx.Locale.Tr "actions.general.collaborative_owner_not_required"}} |
| 8 | + </div> |
| 9 | + {{else}} |
| 10 | + {{if len .CollaborativeOwners}} |
6 | 11 | <div class="ui attached segment"> |
7 | 12 | <div class="flex-list"> |
8 | 13 | {{range .CollaborativeOwners}} |
9 | | - <div class="flex-item tw-items-center"> |
10 | | - <div class="flex-item-leading"> |
11 | | - <a href="{{.HomeLink}}">{{ctx.AvatarUtils.Avatar . 32}}</a> |
12 | | - </div> |
13 | | - <div class="flex-item-main"> |
14 | | - <div class="flex-item-title"> |
15 | | - {{template "shared/user/name" .}} |
16 | | - </div> |
17 | | - </div> |
18 | | - <div class="flex-item-trailing"> |
19 | | - <button class="ui red tiny button inline delete-button" data-url="{{$.Link}}/collaborative_owner/delete" data-id="{{.ID}}"> |
20 | | - {{ctx.Locale.Tr "remove"}} |
21 | | - </button> |
| 14 | + <div class="flex-item tw-items-center"> |
| 15 | + <div class="flex-item-leading"> |
| 16 | + <a href="{{.HomeLink}}">{{ctx.AvatarUtils.Avatar . 32}}</a> |
| 17 | + </div> |
| 18 | + <div class="flex-item-main"> |
| 19 | + <div class="flex-item-title"> |
| 20 | + {{template "shared/user/name" .}} |
22 | 21 | </div> |
23 | 22 | </div> |
| 23 | + <div class="flex-item-trailing"> |
| 24 | + <button class="ui red tiny button inline delete-button" data-url="{{$.Link}}/collaborative_owner/delete" data-id="{{.ID}}"> |
| 25 | + {{ctx.Locale.Tr "remove"}} |
| 26 | + </button> |
| 27 | + </div> |
| 28 | + </div> |
24 | 29 | {{end}} |
25 | 30 | </div> |
26 | 31 | </div> |
|
33 | 38 | </div> |
34 | 39 | <button class="ui primary button">{{ctx.Locale.Tr "actions.general.add_collaborative_owner"}}</button> |
35 | 40 | </form> |
| 41 | + <br> |
| 42 | + {{ctx.Locale.Tr "actions.general.collaborative_owners_management_help"}} |
36 | 43 | </div> |
| 44 | + {{end}} |
37 | 45 | </div> |
38 | 46 |
|
39 | 47 | <div class="ui g-modal-confirm delete modal"> |
|
0 commit comments