diff options
author | Unknwon <u@gogs.io> | 2015-09-17 16:11:44 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-17 16:11:44 -0400 |
commit | 3fb1b6a608625067a76ba90f9855d48c4d6555bd (patch) | |
tree | 5cb663bd07a58bf830b01483465edebf938000ff /templates/admin | |
parent | 562e47f31ced80adc6ffa629e2d8459465c369e9 (diff) | |
download | gitea-3fb1b6a608625067a76ba90f9855d48c4d6555bd.tar.gz gitea-3fb1b6a608625067a76ba90f9855d48c4d6555bd.zip |
drop oauth2 feature support
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/config.tmpl | 21 | ||||
-rw-r--r-- | templates/admin/dashboard.tmpl | 14 |
2 files changed, 5 insertions, 30 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 899c264d92..e302efd043 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -137,27 +137,6 @@ <br> <div class="panel panel-radius"> <div class="panel-header"> - <strong>{{.i18n.Tr "admin.config.oauth_config"}}</strong> - </div> - <div class="panel-body"> - <dl class="dl-horizontal admin-dl-horizontal"> - <dt>{{.i18n.Tr "admin.config.oauth_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>腾讯 QQ</dt> - <dd><i class="fa fa{{if .Oauther.Tencent}}-check{{end}}-square-o"></i></dd> - <dt>新浪微博</dt> - <dd><i class="fa fa{{if .Oauther.Weibo}}-check{{end}}-square-o"></i></dd> - {{end}} - </dl> - </div> - </div> - <br> - <div class="panel panel-radius"> - <div class="panel-header"> <strong>{{.i18n.Tr "admin.config.cache_config"}}</strong> </div> <div class="panel-body"> diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index 874be79b01..847f488095 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -27,28 +27,24 @@ <table class="table"> <tbody> <tr> - <td>{{.i18n.Tr "admin.dashboard.clean_unbind_oauth"}}</td> - <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=1">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td> - </tr> - <tr> <td>{{.i18n.Tr "admin.dashboard.delete_inactivate_accounts"}}</td> - <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=2">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td> + <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=1">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td> </tr> <tr> <td>{{.i18n.Tr "admin.dashboard.delete_repo_archives"}}</td> - <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=3">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td> + <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=2">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td> </tr> <tr> <td>{{.i18n.Tr "admin.dashboard.git_gc_repos"}}</td> - <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=4">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td> + <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=3">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td> </tr> <tr> <td>{{.i18n.Tr "admin.dashboard.resync_all_sshkeys"}}</td> - <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=5">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td> + <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=4">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td> </tr> <tr> <td>{{.i18n.Tr "admin.dashboard.resync_all_update_hooks"}}</td> - <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=6">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td> + <td><i class="fa fa-caret-square-o-right"></i> <a href="{{AppSubUrl}}/admin?op=5">{{.i18n.Tr "admin.dashboard.operation_run"}}</a></td> </tr> </tbody> </table> |