mirror of
https://github.com/MeshTender/MeshTender.git
synced 2026-09-17 00:44:20 +00:00
57 lines
2.3 KiB
HTML
57 lines
2.3 KiB
HTML
{{define "title"}}Contribute {{.Repeater.Name}} · MeshTender{{end}}
|
|
{{define "header"}}
|
|
<div class="row g-2 align-items-center">
|
|
<div class="col">
|
|
<div class="page-pretitle">Contribute to {{.Org.Name}}</div>
|
|
<h2 class="page-title">{{.Repeater.Name}}</h2>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
{{define "content"}}
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<p class="text-secondary mb-0">
|
|
By consenting, you allow {{.Org.Name}}'s admins and members to run these commands on this repeater
|
|
over the mesh (policy v{{.Version}}). Org admins also get everything members get. If the org later
|
|
adds commands, this repeater stays on v{{.Version}} until you review and re-consent. You can
|
|
withdraw anytime. Hover a command to see what it does.
|
|
</p>
|
|
|
|
{{if .Reconsent}}
|
|
<div class="alert alert-warning mt-3 mb-0">
|
|
<h4 class="alert-title">Changes since you consented (v{{.ConsentedVersion}} → v{{.Version}})</h4>
|
|
{{if .Added}}<div>Newly granted: {{range .Added}}<code>{{.}}</code> {{end}}</div>{{end}}
|
|
{{if .Removed}}<div>No longer granted: {{range .Removed}}<code>{{.}}</code> {{end}}</div>{{end}}
|
|
{{if not (or .Added .Removed)}}<div>No command changes (notes/metadata only).</div>{{end}}
|
|
{{if .Notes}}<div class="text-secondary mt-2">
|
|
{{range .Notes}}v{{.Version}}{{if .Note}}: {{.Note}}{{end}}<br>{{end}}
|
|
</div>{{end}}
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mt-3">
|
|
<div class="card-header"><h3 class="card-title">Members can run</h3></div>
|
|
<div class="card-body">
|
|
{{if .MemberFeatures}}{{template "feature-table" .MemberFeatures}}
|
|
{{else}}<p class="text-secondary mb-0">Members aren't granted any commands.</p>{{end}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mt-3">
|
|
<div class="card-header"><h3 class="card-title">Admins can run</h3></div>
|
|
<div class="card-body">
|
|
{{if .AdminFeatures}}{{template "feature-table" .AdminFeatures}}
|
|
{{else}}<p class="text-secondary mb-0">Admins aren't granted any commands.</p>{{end}}
|
|
</div>
|
|
</div>
|
|
|
|
<form method="post" action="/repeaters/{{.Repeater.PublicID}}/orgs/{{.Org.Slug}}/contribute">
|
|
<div class="btn-list mt-3">
|
|
<button type="submit" class="btn btn-primary">I consent — contribute this repeater</button>
|
|
<a class="btn" href="/repeaters/{{.Repeater.PublicID}}/share">Cancel</a>
|
|
</div>
|
|
</form>
|
|
{{end}}
|