diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-13 21:00:12 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-13 21:00:12 -0400 |
commit | d2b53dd43b3bc9719985033bc92b76abb9515b4d (patch) | |
tree | f6c038f0b8c11e8a01d7cd26d6bbdb14144696b3 /templates/admin/config.tmpl | |
parent | 4b9b8024ba59b5b84d92dca650761b35ebf6408a (diff) | |
download | gitea-d2b53dd43b3bc9719985033bc92b76abb9515b4d.tar.gz gitea-d2b53dd43b3bc9719985033bc92b76abb9515b4d.zip |
Add weibo oauth
Diffstat (limited to 'templates/admin/config.tmpl')
-rw-r--r-- | templates/admin/config.tmpl | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 31cfb77bad..757a800c20 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -88,12 +88,34 @@ <dl class="dl-horizontal admin-dl-horizontal"> <dt>Enabled</dt> <dd><i class="fa fa{{if .MailerEnabled}}-check{{end}}-square-o"></i></dd> - <dt>Name</dt> + {{if .MailerEnabled}}<dt>Name</dt> <dd>{{.Mailer.Name}}</dd> <dt>Host</dt> <dd>{{.Mailer.Host}}</dd> <dt>User</dt> - <dd>{{.Mailer.User}}</dd> + <dd>{{.Mailer.User}}</dd>{{end}} + </dl> + </div> + </div> + + <div class="panel panel-default"> + <div class="panel-heading"> + OAuth Configuration + </div> + + <div class="panel-body"> + <dl class="dl-horizontal admin-dl-horizontal"> + <dt>Enabled</dt> + <dd><i class="fa fa{{if .OauthEnabled}}-check{{end}}-square-o"></i></dd> + {{if .OauthEnabled}}<dt>GitHub</dt> + <dd><i class="fa fa{{if .Oauther.GitHub}}-check{{end}}-square-o"></i></dd> + <dt>Google</dt> + <dd><i class="fa fa{{if .Oauther.Google}}-check{{end}}-square-o"></i></dd> + <dt>Tencent QQ</dt> + <dd><i class="fa fa{{if .Oauther.Tencent}}-check{{end}}-square-o"></i></dd> + <dt>Weibo</dt> + <dd><i class="fa fa{{if .Oauther.Weibo}}-check{{end}}-square-o"></i></dd> + <dd>{{.Mailer.User}}</dd>{{end}} </dl> </div> </div> |