mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 23:28:17 +00:00
add admin checkbox for setting a repo privileged
This commit is contained in:
@@ -43,6 +43,15 @@
|
||||
Enable Pull Hooks
|
||||
</label>
|
||||
</div>
|
||||
{{ if .User.Admin }}
|
||||
<div class="alert alert-min">Admin-only settings.</div>
|
||||
<div class="checkbox form-group">
|
||||
<label>
|
||||
<input class="" type="checkbox" name="Privileged" {{ if .Repo.Privileged }}checked="True" {{ end }}/>
|
||||
Enable Privileged Builds
|
||||
</label>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="alert alert-min">Choose the account owner.</div>
|
||||
<div>
|
||||
<ul class="account-radio-group">
|
||||
@@ -100,4 +109,4 @@
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user