diff --git a/internal/web/settings.go b/internal/web/settings.go index 8d2536a..b55bce9 100644 --- a/internal/web/settings.go +++ b/internal/web/settings.go @@ -176,7 +176,7 @@ var accountFields = []secretField{ {"X", secrets.XBearerToken, "Bearer token", "For reading posts; needs an X API plan with read access. In the X Developer Console, open your app → Keys and tokens → Bearer token.", xConsole}, {"X", secrets.XClientID, "OAuth 2.0 client ID", - "For posting. In your app, set up User authentication (read and write; type Web App; the callback URL below), then Keys and tokens → OAuth 2.0 Client ID.", xConsole}, + "For posting. In your app, set up User authentication (read and write; type Web App; the callback URL above), then Keys and tokens → OAuth 2.0 Client ID.", xConsole}, {"X", secrets.XClientSecret, "OAuth 2.0 client secret", "Next to the client ID, under Keys and tokens. Only a confidential client (Web App) has one; leave empty for a public client.", xConsole}, {"LinkedIn", secrets.LinkedInClientID, "Client ID", @@ -188,7 +188,7 @@ var accountFields = []secretField{ {"LinkedIn page", secrets.LinkedInPageClientSecret, "Client secret", "On the same Auth tab, under the client ID.", linkedInApps}, {"Reddit", secrets.RedditClientID, "Client ID", - "Create app → choose \"web app\" and enter the redirect URI below. The client ID is the string under the app's name.", redditApps}, + "Create app → choose \"web app\" and enter the redirect URI above. The client ID is the string under the app's name.", redditApps}, {"Reddit", secrets.RedditClientSecret, "Client secret", "On the same app, next to \"secret\".", redditApps}, {"YouTube", secrets.YouTubeAPIKey, "API key", diff --git a/internal/web/templates/accounts.html b/internal/web/templates/accounts.html index 87c7a92..41eb1d6 100644 --- a/internal/web/templates/accounts.html +++ b/internal/web/templates/accounts.html @@ -12,6 +12,7 @@

{{.Name}} {{with .Connect}}{{if .Signed}}connected{{with .Account}} as {{.}}{{end}}{{else}}not connected{{end}}{{end}}

+ {{with .Connect}}

{{.Setup}} {{.Redirect}} {{with .Note}}
{{.}}{{end}}

{{end}}
{{range .Fields}} @@ -42,7 +43,6 @@ {{else if .Soon}}

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"}}. Reconnect now to keep posting.

{{else}}

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.

{{end}} {{end}} -

{{.Setup}} {{.Redirect}}{{with .Note}}
{{.}}{{end}}