diff --git a/static/img/mark/gitlab.png b/static/img/mark/gitlab.png new file mode 100644 index 0000000..214b0ad Binary files /dev/null and b/static/img/mark/gitlab.png differ diff --git a/static/img/mark/slack.png b/static/img/mark/slack.png new file mode 100644 index 0000000..33b4abc Binary files /dev/null and b/static/img/mark/slack.png differ diff --git a/static/img/mark/writeas.png b/static/img/mark/writeas.png new file mode 100644 index 0000000..777885b Binary files /dev/null and b/static/img/mark/writeas.png differ diff --git a/templates/user/settings.tmpl b/templates/user/settings.tmpl index a403feb..8ade8ad 100644 --- a/templates/user/settings.tmpl +++ b/templates/user/settings.tmpl @@ -4,7 +4,13 @@
{{if .Silenced}} @@ -62,41 +68,63 @@ h3 { font-weight: normal; }
-
+
{{ if .OauthSection }} -

OAuth Management

+
+ {{ if .OauthAccounts }} -

Existing OAuth accounts can be removed from your account.

+
+

Linked Accounts

+

These are your linked external accounts.

{{ range $oauth_account := .OauthAccounts }}
-
-
- -
-
+
+ {{ $oauth_account.Provider | title }} + +
{{ end }} - {{ end }} - {{ if or .OauthSlack .OauthWriteAs }} -

+

+ {{ end }} + {{ if or .OauthSlack .OauthWriteAs .OauthGitLab }} +
+

Link External Accounts

+

Connect additional accounts to enable logging in with those providers, instead of using your username and password.

+
+ {{ if .OauthWriteAs }} + + {{ end }} {{ if .OauthSlack }} - Sign in with Slack - {{ end }} - {{ if .OauthWriteAs }} - Link your Write.as account. + {{ end }} {{ if .OauthGitLab }} - Link your {{.GitLabDisplayName}} account + {{ end }} -

- {{ end }} +
+
+ {{ end }} {{ end }}