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 @@ -1,118 +1,146 @@ {{define "settings"}} {{template "header" .}}
{{if .Silenced}} {{template "user-silenced"}} {{end}}

{{if .IsLogOut}}Before you go...{{else}}Account Settings {{if .IsAdmin}}admin settings{{end}}{{end}}

{{if .Flashes}}{{end}} {{ if .IsLogOut }}

Please add an email address and/or passphrase so you can log in again later.

{{ else }}

Change your account settings here.

Username

{{ end }}

Passphrase

{{if and (not .HasPass) (not .IsLogOut)}}

Add a passphrase to easily log in to your account.

{{end}} {{if .HasPass}}

Current passphrase

New passphrase

{{end}} {{if .IsLogOut}}{{end}}

Email

{{if and (not .Email) (not .IsLogOut)}}

Add your email to get:

  • No-passphrase login
  • Account recovery if you forget your passphrase
{{end}}
-
+
{{ 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 }}
{{template "footer" .}} {{end}}