From d2b53dd43b3bc9719985033bc92b76abb9515b4d Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 13 Apr 2014 21:00:12 -0400 Subject: Add weibo oauth --- templates/user/publickey.tmpl | 4 ++-- templates/user/setting_nav.tmpl | 1 + templates/user/signin.tmpl | 5 +++-- templates/user/social.tmpl | 17 +++++++++++++++++ 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 templates/user/social.tmpl (limited to 'templates/user') diff --git a/templates/user/publickey.tmpl b/templates/user/publickey.tmpl index ecdeb035..29cfd8f0 100644 --- a/templates/user/publickey.tmpl +++ b/templates/user/publickey.tmpl @@ -4,8 +4,8 @@ {{template "user/setting_nav" .}}
-

SSH Keys

{{if .AddSSHKeySuccess}} -

New SSH Key has been added !

{{else if .HasError}}

{{.ErrorMsg}}

{{end}} +

SSH Keys

+ {{template "base/alert" .}}
  • SSH Key's name
  • {{range .Keys}} diff --git a/templates/user/setting_nav.tmpl b/templates/user/setting_nav.tmpl index c0f2ae03..9c7ae520 100644 --- a/templates/user/setting_nav.tmpl +++ b/templates/user/setting_nav.tmpl @@ -2,6 +2,7 @@

    Account Setting

    • Account Profile
    • +
    • Social Account
    • Password
    • SSH Keys
    • diff --git a/templates/user/signin.tmpl b/templates/user/signin.tmpl index d402c292..955c82f4 100644 --- a/templates/user/signin.tmpl +++ b/templates/user/signin.tmpl @@ -61,8 +61,9 @@ --> {{if .OauthService.GitHub}}GitHub{{end}} {{if .OauthService.Google}}Google{{end}} - {{if .OauthService.Tencent}}Twitter{{end}} - {{if .OauthService.Tencent}}QQ{{end}} + {{if .OauthService.Twitter}}Twitter{{end}} + {{if .OauthService.Tencent}}Tencent QQ{{end}} + {{if .OauthService.Weibo}}Weibo{{end}}
{{end}}{{end}} diff --git a/templates/user/social.tmpl b/templates/user/social.tmpl new file mode 100644 index 00000000..f0b11323 --- /dev/null +++ b/templates/user/social.tmpl @@ -0,0 +1,17 @@ +{{template "base/head" .}} +{{template "base/navbar" .}} +
+ {{template "user/setting_nav" .}} +
+
+

Social Account

+ {{template "base/alert" .}} +
    + {{range .Socials}} + + {{end}} +
+
+
+
+{{template "base/footer" .}} \ No newline at end of file -- cgit v1.2.3