|
97 | 97 | <h5 class="ui dividing header">{{ctx.Locale.Tr "repo.settings.event_force_push"}}</h5>
|
98 | 98 | <div class="field">
|
99 | 99 | <div class="ui radio checkbox">
|
100 |
| - <input type="radio" name="enable_force_push" value="none" class="toggle-target-disabled" data-target="#force_push_whitelist_box" {{if not .Rule.CanForcePush}}checked{{end}}> |
| 100 | + <input type="radio" name="enable_force_push" value="none" class="toggle-target-disabled" data-target="#force_push_allowlist_box" {{if not .Rule.CanForcePush}}checked{{end}}> |
101 | 101 | <label>{{ctx.Locale.Tr "repo.settings.protect_disable_force_push"}}</label>
|
102 | 102 | <p class="help">{{ctx.Locale.Tr "repo.settings.protect_disable_force_push_desc"}}</p>
|
103 | 103 | </div>
|
104 | 104 | </div>
|
105 | 105 | <div class="field">
|
106 | 106 | <div class="ui radio checkbox">
|
107 |
| - <input type="radio" name="enable_force_push" value="all" class="toggle-target-disabled" data-target="#force_push_whitelist_box" {{if and (.Rule.CanForcePush) (not .Rule.EnableForcePushAllowlist)}}checked{{end}}> |
| 107 | + <input type="radio" name="enable_force_push" value="all" class="toggle-target-disabled" data-target="#force_push_allowlist_box" {{if and (.Rule.CanForcePush) (not .Rule.EnableForcePushAllowlist)}}checked{{end}}> |
108 | 108 | <label>{{ctx.Locale.Tr "repo.settings.protect_enable_force_push_all"}}</label>
|
109 | 109 | <p class="help">{{ctx.Locale.Tr "repo.settings.protect_enable_force_push_all_desc"}}</p>
|
110 | 110 | </div>
|
111 | 111 | </div>
|
112 | 112 | <div class="grouped fields">
|
113 | 113 | <div class="field">
|
114 | 114 | <div class="ui radio checkbox">
|
115 |
| - <input type="radio" name="enable_force_push" value="whitelist" class="toggle-target-enabled" data-target="#force_push_whitelist_box" {{if and (.Rule.CanForcePush) (.Rule.EnableForcePushAllowlist)}}checked{{end}}> |
| 115 | + <input type="radio" name="enable_force_push" value="whitelist" class="toggle-target-enabled" data-target="#force_push_allowlist_box" {{if and (.Rule.CanForcePush) (.Rule.EnableForcePushAllowlist)}}checked{{end}}> |
116 | 116 | <label>{{ctx.Locale.Tr "repo.settings.protect_enable_force_push_allowlist"}}</label>
|
117 | 117 | <p class="help">{{ctx.Locale.Tr "repo.settings.protect_enable_force_push_allowlist_desc"}}</p>
|
118 | 118 | </div>
|
119 | 119 | </div>
|
120 |
| - <div id="force_push_whitelist_box" class="grouped fields {{if not .Rule.EnableForcePushAllowlist}}disabled{{end}}"> |
| 120 | + <div id="force_push_allowlist_box" class="grouped fields {{if not .Rule.EnableForcePushAllowlist}}disabled{{end}}"> |
121 | 121 | <div class="checkbox-sub-item field">
|
122 |
| - <label>{{ctx.Locale.Tr "repo.settings.protect_force_push_whitelist_users"}}</label> |
| 122 | + <label>{{ctx.Locale.Tr "repo.settings.protect_force_push_allowlist_users"}}</label> |
123 | 123 | <div class="ui multiple search selection dropdown">
|
124 |
| - <input type="hidden" name="force_push_whitelist_users" value="{{.force_push_whitelist_users}}"> |
| 124 | + <input type="hidden" name="force_push_allowlist_users" value="{{.force_push_allowlist_users}}"> |
125 | 125 | <div class="default text">{{ctx.Locale.Tr "search.user_kind"}}</div>
|
126 | 126 | <div class="menu">
|
127 | 127 | {{range .Users}}
|
|
0 commit comments