Phase 10, part 7: posting accounts, and who may post to which
Social accounts become posting accounts: several per network, the company's and each person's own, with their tokens kept per account. The old sign-ins are adopted as the company's. Admins say who may post to which (Settings → Posting accounts); a draft can go out from one account or a copy to several, each recording who posted it and as what. Signing an account out, or removing its owner, holds the posts scheduled to it and tells whoever scheduled them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
{{define "content"}}{{template "settings-start" .}}{{with .Data}}{{$d := .}}
|
||||
<h2>Posting accounts</h2>
|
||||
<p class="lede">The accounts posts go out from, and who may post to each. Admins may post to all of them; a person's own account is theirs. Tick to let someone else post to an account: the post records who wrote it and which account it went out as.</p>
|
||||
{{if not .Accounts}}
|
||||
<section class="card empty"><p>No posting accounts yet. Connect the company's under <a href="/settings/accounts">Social accounts</a>; each person can connect their own under Your account.</p></section>
|
||||
{{else}}
|
||||
<form class="card" method="post" action="/settings/posting">
|
||||
<div class="table-scroll">
|
||||
<table class="list grid">
|
||||
<thead><tr><th>Person</th>{{range .Accounts}}<th>{{.Label}}<br><span class="muted small">{{if eq .Owner 0}}the company's{{else}}{{index $d.Owners .Owner}}'s own{{end}}{{if not (index $d.Working .ID)}} · not working{{end}}</span></th>{{end}}</tr></thead>
|
||||
<tbody>
|
||||
{{range $p := .People}}<tr>
|
||||
<td>{{if .Name}}{{.Name}}{{else}}{{.Email}}{{end}}<br><span class="muted small">{{if .Admin}}admin{{else if .Can "content" true}}member{{else}}no Content: can't post{{end}}</span></td>
|
||||
{{range $a := $d.Accounts}}<td>
|
||||
{{if $p.Admin}}<input type="checkbox" checked disabled title="Admins may post to every account">
|
||||
{{else if eq $a.Owner $p.ID}}<input type="checkbox" checked disabled title="Their own account">
|
||||
{{else}}<input type="checkbox" name="grant" value="{{$a.ID}}:{{$p.ID}}" {{with index $d.Grants $a.ID}}{{if index . $p.ID}}checked{{end}}{{end}} aria-label="{{$p.Email}} may post to {{$a.Label}}">{{end}}
|
||||
</td>{{end}}
|
||||
</tr>{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p class="help">Members also need edit on Content to post at all.</p>
|
||||
<button type="submit">Save</button>
|
||||
</form>
|
||||
{{end}}
|
||||
{{end}}{{template "settings-end"}}{{end}}
|
||||
Reference in New Issue
Block a user