From 491a1148ee503c4bd709493f00017da8fdf9fd1d Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Tue, 24 Mar 2020 10:41:53 -0400 Subject: [PATCH] Restyle OAuth account management section - Break up linked / to-link sections - Add logos for all services - Lay out buttons horizontally - Tweak the copy Ref T713 --- static/img/mark/gitlab.png | Bin 0 -> 1005 bytes static/img/mark/slack.png | Bin 0 -> 2291 bytes static/img/mark/writeas.png | Bin 0 -> 2884 bytes templates/user/settings.tmpl | 66 +++++++++++++++++++++++++---------- 4 files changed, 47 insertions(+), 19 deletions(-) create mode 100644 static/img/mark/gitlab.png create mode 100644 static/img/mark/slack.png create mode 100644 static/img/mark/writeas.png diff --git a/static/img/mark/gitlab.png b/static/img/mark/gitlab.png new file mode 100644 index 0000000000000000000000000000000000000000..214b0ad3d6d836234b25127184fe75338b981eeb GIT binary patch literal 1005 zcmeAS@N?(olHy`uVBq!ia0vp^3qY8I8A$FCoG#D6z{nlo6XNg=swV)O_l$ z`884fLxjfbK#g}H8n65`-i4{Z1{&z60W=n9CXoB32&CZ8Vl@!zSNoHz_NPVKxH{aK*)r(ErKw%V^uwLf#z{uHSF=~eqPN$t-xwLcwdf9ll!l&JlgsrIKw z?avgoKXXBhccB_U1wT^N|8%Q?P^;RXiE4kk)PTDgZ-=u_VYZn8D%MjWiG^$=lt9p@UV{1IXbl z@Q5sCVBi)8VMc~ob0mO*>?NMQuIx{kCHORSzKKg-XJBB8_H=O!skrs_=3YPPK!LW0 znr@3YJvg+yOd^^D*t;||L=;q9CUQx=`|rnbBk}s~>VLfXV z_pfO0diF1mS!&HMe!o~3pD;U=4r}K+QFZjVEev7qh@A{fn!}$vX79Db0aD~;6 zL;uje?iK!7Kc4JLX?=V?&YSh&G1FA*1y|VnTFVvh#~w;&*)w&DL3QI{ZQH963r_Is zeyA&1X?5Tt*YwN#-mhd0WA?hob$MTw!$pRrVg}AT<}SwV1s{%a~%`ZvM7J{-#%_V(LO&R^}9d(J8MFI)Bhysln4EsFd4fo<2Wi?3_Y{bko-FW!HqzdPUeQ^r^Q+gF)Z xUYz$-R%8E)yHCD^tay1Y51s}fso}+5^BW4eZYQ(4_5)KMgQu&X%Q~loCIBTb!}$OJ literal 0 HcmV?d00001 diff --git a/static/img/mark/slack.png b/static/img/mark/slack.png new file mode 100644 index 0000000000000000000000000000000000000000..33b4abcd4c0361d7e44dbf0f822a5f878e2f36f8 GIT binary patch literal 2291 zcmb7GhgXx?6919_k%SI0AXOAZIzh?le)R6A-RV@H;h+=R3Z;u$p>J;&cR1ma#gE;JSPJ@Q2)5)QWeYKm|P&S}W%-XQo zj{;xooL+-+Y;1fq_mYG^p!+K~Zrh1fdj)5+(j`adeqz1P(F(IXXyx?7DnlA=!AhDx zvCXH%Z=ULUKbam&yAfPtT5H;@-@LO!(J3s7{WhO}aWOwXZc#=|{2!tGv7te`)rDgZ zD-$9?3^mVLg^=t@GaG-WK&QwsOADe@hZzWFN&AGL9K?k3B5(u76bX}%?kST9hggjX ze1{Mrl@yi55^uba@qB4fIs$(UPSj%SvCrmvBEhF*_3SN~Hf^RpwY9HeiDESQCfpYi z(#j6y)6Oe-s;Cbpkkv^|4%-}9nS;?nP23; zcdH;lUVOwJ5<*>zM$=n*FZ*pZYTjAk;19I<>D*AkXBn&JkNJNjLdSPUlU=%oct*fU zNoJ=c)eM!c6Me%%fok$_TJV+z#Wk|?0K$RT*jPd` z)RV{9ZH>}6At~@Bc3Ue;;Fc&^9zS$KswhnJ+7AI9W$qw)QIW^BETxR%26G8Q$@9~3 z3A=vPRPFOpmg14^NQ_m5AGq_a?eM!!sW6!IK$%1dDFk+t{tiAabey7?pg~}8v5=|@ ze<^g!8juT@yEpl{jdP$M^SXI%UZ!z`GjtuAisq6Tyu9TAZp}`J^`_~X|8=5#ykETJ+e^E!E2@a)JHbEpJ-UnQs(V*WSK9YS5cn`w zjIpcBWJtvj_iKt+n)g+P8$?KLU`q|%B=J=6*<^X_L43uR3CsXQbJj8Yuwn z9gSkWWXlZrbeAC|@Oq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)iY z1^MM-KlW;%s(ji@Cj>r;o73x;8Tt5gt>X{ZFS1421tupcTAzi#!Z_k9!Ob$vR=2@| zykOE-WXuaQffe3$&G_kc*cf@DM_TdHJ*1_&ch94^z1&=qGwkGU>%yiSz1melsp7U_ z@&;$R2o$F#r6!$KWVY(=9M{d#^oLC?>FYn_%=8b|FK1hDyu*i0rM6PLP~cBE$$&0G zq!RSJds4oYlJqT#1DX~KNKY$mtp5?7$L^s8-E;y_y^nl&-xI*z#>tw7#V7t3Xk9AG literal 0 HcmV?d00001 diff --git a/static/img/mark/writeas.png b/static/img/mark/writeas.png new file mode 100644 index 0000000000000000000000000000000000000000..777885b4ecbea9c4d81a88256b001dc93583beda GIT binary patch literal 2884 zcmb^z2UnBX@=Ia}9UDdrpe`L25f$l8$cr;Lg^2M z4X|BFjNVGCz^>OwqI+kM--XO}(H1s&Tvl7U5wdHXKh=E&vxDa|ipYcE-kgngG%{aD zrw|Mvc@kOkt)Y+3e$t9LU`rE4ijSic-7n5+G!p^6N+p2Wq+Hb6Qg<9Zv?VA`JbyvV zPfZPOHK1Y#{BUUBAT>eE^F(_Xxpsi`%GP|9g&M?)f3IoYp~Ua$`=A-I87JIPCm}ul z7EMtI9&!nj z*mH`u=LVUuNS1hhCi=*PH0rWlf3uDVUX?woOG0`3M3-O1h}5dXz!7NLlHiS1D)MF|6a!;)wZFy_! zv$g8&4r*G>_0_$$k0BOv?cd5|orO){1`GkvnXIT>GP*I8s(Ms1jo z=p5P9&K;Pi9S(rHNsO&j-^g`9Q_AUAXg*EJls;}!BXzMLIslt#(aVG{p zef6;@$js^mAHrp~=y?oUXWwLU+0%SyPNr|ENI_E)0b#(PC5SF)|P29V2zFS_QAp_?h zzp!J2p+YH64dTzc;AHKGgXPs0rQe4=3<`mo?ygNZAM1CJ5$qOIxtPs(i((!{J-h{R zdgDtBBKg<#4+i^NDA~%J4^}QH_b(sp>4fE$r^v6XYU_$L*R^LLDcG|%z$tA1*3z{o zxz>D|xC9he#odr+k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fsBV8vxhUB(8ur}q21FEJLw%b}k~B54bpqnuZ|WlYAi0%N=aF3QmqJ1M4X zIA&o);l^)BpRQBCI@hZcrNl=m&zzg2gb=}EIi!&$bXsOyiOO}S@3VQSuC5)l=qC)$ zPhK>srd9SuM5YI#a^uHQs1p+qoG~-beKJ@?rjW{n?FlxAEYAJZ;OfiB&14OIAFejH vOBhR)^;fo;8Vl_(=WaTf{I8JgaR~3(VBe36y)DAqcL8&>l}YtAOzeLF$uw;F literal 0 HcmV?d00001 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 }}