mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-03 08:46:57 +00:00
- diff view gains a Packages tab with added/removed/changed/unchanged package tables and purl-derived type/license/upstream links - captain records verified against the DID's atcr_hold service before caching (processor + batch backfill), preventing forged holds - fix empty-handle updates clobbering cached handles and colliding on the UNIQUE constraint - move fillPrevCIDs into repo.go; DirectRepoOperator is now canonical, repomgr kept as a test oracle - surface read-only crew status in hold selector - reconcile docs
35 lines
1.5 KiB
HTML
35 lines
1.5 KiB
HTML
{{ define "hold_selector" }}
|
|
<div class="card bg-base-200 shadow-sm p-4">
|
|
<form hx-post="/api/profile/default-hold" hx-swap="none" class="flex items-center gap-3 flex-wrap">
|
|
<label class="text-sm font-medium whitespace-nowrap" for="hold-select">Active Hold:</label>
|
|
<select id="hold-select" name="hold_did" class="select select-bordered select-sm flex-1 min-w-0"
|
|
data-action="submit-form">
|
|
{{ if not .ActiveHold }}
|
|
<option value="" selected>-- Select a hold --</option>
|
|
{{ end }}
|
|
|
|
{{ if .MemberHolds }}
|
|
<optgroup label="Your Holds">
|
|
{{ range .MemberHolds }}
|
|
<option value="{{ .DID }}" {{ if .IsActive }}selected{{ end }}>
|
|
{{ .DisplayName }}{{ if eq .Membership "owner" }} (Owner){{ else if .ReadOnly }} (Crew, read-only){{ else }} (Crew){{ end }}{{ if .Region }} · {{ .Region }}{{ end }}
|
|
</option>
|
|
{{ end }}
|
|
</optgroup>
|
|
{{ end }}
|
|
|
|
{{ if .EligibleHolds }}
|
|
<optgroup label="Available Holds">
|
|
{{ range .EligibleHolds }}
|
|
<option value="{{ .DID }}">
|
|
{{ .DisplayName }}{{ if .Region }} · {{ .Region }}{{ end }} (Join)
|
|
</option>
|
|
{{ end }}
|
|
</optgroup>
|
|
{{ end }}
|
|
</select>
|
|
<noscript><button type="submit" class="btn btn-sm btn-primary">Switch</button></noscript>
|
|
</form>
|
|
</div>
|
|
{{ end }}
|