add admin checkbox for setting a repo privileged

This commit is contained in:
Alex Suraci
2014-02-17 10:48:43 -08:00
committed by Aram Price
parent cccf0fb610
commit e0c9617dc7
2 changed files with 12 additions and 1 deletions

View File

@@ -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 }}