Social accounts: the redirect address at the top of each card
It sat under the Save button, while the keys' help pointed below to it. Now it comes first, with a Copy button, ahead of the keys that need it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
<h2>{{.Name}}
|
||||
{{with .Connect}}{{if .Signed}}<span class="badge published">connected{{with .Account}} as {{.}}{{end}}</span>{{else}}<span class="badge">not connected</span>{{end}}{{end}}
|
||||
</h2>
|
||||
{{with .Connect}}<p class="help">{{.Setup}} <code id="redirect-{{.Provider}}">{{.Redirect}}</code> <button type="button" class="link small" data-copy="redirect-{{.Provider}}">Copy</button>{{with .Note}}<br>{{.}}{{end}}</p>{{end}}
|
||||
<form method="post" action="/settings/accounts" hx-post="/settings/accounts" hx-target="closest section" hx-swap="outerHTML" autocomplete="off">
|
||||
<input type="hidden" name="network" value="{{.Name}}">
|
||||
{{range .Fields}}
|
||||
@@ -42,7 +43,6 @@
|
||||
{{else if .Soon}}<p class="warn-text"><strong>The sign-in expires {{if eq .Days 0}}today{{else if eq .Days 1}}tomorrow{{else}}in {{.Days}} days{{end}}, on {{.At.Local.Format "2 Jan 2006"}}.</strong> Reconnect now to keep posting.</p>
|
||||
{{else}}<p class="help">The sign-in lasts until {{.At.Local.Format "2 Jan 2006"}}; {{.Network}} doesn't let it be renewed without signing in again. Supermarket reminds you two weeks before.</p>{{end}}
|
||||
{{end}}
|
||||
<p class="help">{{.Setup}} <code>{{.Redirect}}</code>{{with .Note}}<br>{{.}}{{end}}</p>
|
||||
<form method="post" action="/auth/{{.Provider}}/start">
|
||||
<button type="submit" {{if not .Ready}}disabled title="Save the client ID{{if ne .Provider "x"}} and secret{{end}} first"{{end}}>{{if .Signed}}Add or reconnect a company account{{else}}Connect {{$name}}{{end}}</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user