New Sign in

fierj

Public

Tiny personal git forge

← fierj / templates / repo_settings.html
{{template "head" .}}
{{define "title"}}settings - {{.Repo}} - fierj{{end}}
{{template "repo-header" .}}
{{template "repo-tabs" .}}

<h1 class="page-header" style="font-size:1.25rem;">Repository settings</h1>

<form method="post" class="form-narrow">
  <div class="form-group">
    <label for="description">Description</label>
    <input type="text" id="description" name="description" value="{{.Description}}">
  </div>

  <div class="form-group">
    <label class="form-check">
      <input type="checkbox" name="is_private" value="true" {{if .IsPrivate}}checked{{end}}>
      Private repository (only visible to logged-in users)
    </label>
  </div>

  <div class="form-group">
    <label for="authorized_keys">Authorized SSH keys (one per line)</label>
    <textarea id="authorized_keys" name="authorized_keys" rows="6" class="mono-input">{{.AuthorizedKeys}}</textarea>
    <div class="hint">
      Users with these keys can push to this repo. Leave empty to allow anyone with SSH access.
    </div>
  </div>

  <div class="form-group">
    <label for="protected_branches">Protected branches (one per line)</label>
    <textarea id="protected_branches" name="protected_branches" rows="4" placeholder="main&#10;release/*" class="mono-input">{{.ProtectedBranches}}</textarea>
    <div class="hint">
      Branches that require authorized keys to push. Supports wildcards (e.g. <code>release/*</code>).
    </div>
  </div>

  <button type="submit" class="btn">Save settings</button>
</form>
{{template "foot" .}}