summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-17 16:11:44 -0400
committerUnknwon <u@gogs.io>2015-09-17 16:11:44 -0400
commit3fb1b6a608625067a76ba90f9855d48c4d6555bd (patch)
tree5cb663bd07a58bf830b01483465edebf938000ff /templates/user
parent562e47f31ced80adc6ffa629e2d8459465c369e9 (diff)
downloadgitea-3fb1b6a608625067a76ba90f9855d48c4d6555bd.tar.gz
gitea-3fb1b6a608625067a76ba90f9855d48c4d6555bd.zip
drop oauth2 feature support
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/auth/signin.tmpl12
-rw-r--r--templates/user/settings/nav.tmpl16
-rw-r--r--templates/user/settings/navbar.tmpl5
-rw-r--r--templates/user/settings/social.tmpl33
4 files changed, 2 insertions, 64 deletions
diff --git a/templates/user/auth/signin.tmpl b/templates/user/auth/signin.tmpl
index 259c5f7d8f..a1e30e95cb 100644
--- a/templates/user/auth/signin.tmpl
+++ b/templates/user/auth/signin.tmpl
@@ -5,7 +5,7 @@
<form class="ui form" action="{{.Link}}" method="post">
{{.CsrfTokenHtml}}
<h3 class="ui top attached header">
- {{if .IsSocialLogin}}{{.i18n.Tr "social_sign_in" | Str2html}}{{else}}{{.i18n.Tr "sign_in"}}{{end}}
+ {{.i18n.Tr "sign_in"}}
</h3>
<div class="ui attached segment">
{{template "base/alert" .}}
@@ -17,7 +17,6 @@
<label for="password">{{.i18n.Tr "password"}}</label>
<input id="password" name="password" type="password" value="{{.password}}" required>
</div>
- {{if not .IsSocialLogin}}
<div class="inline field">
<label></label>
<div class="ui checkbox">
@@ -25,12 +24,11 @@
<input name="remember" type="checkbox">
</div>
</div>
- {{end}}
<div class="inline field">
<label></label>
<button class="ui green button">{{.i18n.Tr "sign_in"}}</button>
- {{if not .IsSocialLogin}}<a href="{{AppSubUrl}}/user/forget_password">{{.i18n.Tr "auth.forget_password"}}</a>{{end}}
+ <a href="{{AppSubUrl}}/user/forget_password">{{.i18n.Tr "auth.forget_password"}}</a>
</div>
{{if .ShowRegistrationButton}}
<div class="inline field">
@@ -38,12 +36,6 @@
<a href="{{AppSubUrl}}/user/sign_up">{{.i18n.Tr "auth.sign_up_now" | Str2html}}</a>
</div>
{{end}}
- {{if and (not .IsSocialLogin) .OauthEnabled}}
- <div class="inline field">
- <label></label>
- {{template "base/social" .}}
- </div>
- {{end}}
</div>
</form>
</div>
diff --git a/templates/user/settings/nav.tmpl b/templates/user/settings/nav.tmpl
deleted file mode 100644
index 838e21476d..0000000000
--- a/templates/user/settings/nav.tmpl
+++ /dev/null
@@ -1,16 +0,0 @@
-<div id="setting-menu" class="grid-1-5 panel panel-radius left">
- <p class="panel-header"><strong>{{.i18n.Tr "settings"}}</strong></p>
- <div class="panel-body">
- <ul class="menu menu-vertical switching-list grid-1-5 left">
- <li {{if .PageIsSettingsProfile}}class="current"{{end}}><a href="{{AppSubUrl}}/user/settings">{{.i18n.Tr "settings.profile"}}</a></li>
- <li {{if .PageIsSettingsPassword}}class="current"{{end}}><a href="{{AppSubUrl}}/user/settings/password">{{.i18n.Tr "settings.password"}}</a></li>
- <li {{if .PageIsSettingsEmails}}class="current"{{end}}><a href="{{AppSubUrl}}/user/settings/email">{{.i18n.Tr "settings.emails"}}</a></li>
- <li {{if .PageIsSettingsSSHKeys}}class="current"{{end}}><a href="{{AppSubUrl}}/user/settings/ssh">{{.i18n.Tr "settings.ssh_keys"}}</a></li>
- {{if .HasOAuthService}}
- <li {{if .PageIsSettingsSocial}}class="current"{{end}}><a href="{{AppSubUrl}}/user/settings/social">{{.i18n.Tr "settings.social"}}</a></li>
- {{end}}
- <li {{if .PageIsSettingsApplications}}class="current"{{end}}><a href="{{AppSubUrl}}/user/settings/applications">{{.i18n.Tr "settings.applications"}}</a></li>
- <li {{if .PageIsSettingsDelete}}class="current"{{end}}><a href="{{AppSubUrl}}/user/settings/delete">{{.i18n.Tr "settings.delete"}}</a></li>
- </ul>
- </div>
-</div> \ No newline at end of file
diff --git a/templates/user/settings/navbar.tmpl b/templates/user/settings/navbar.tmpl
index 3b8973b8e0..5c8773a84b 100644
--- a/templates/user/settings/navbar.tmpl
+++ b/templates/user/settings/navbar.tmpl
@@ -13,11 +13,6 @@
<a class="{{if .PageIsSettingsSSHKeys}}active{{end}} item" href="{{AppSubUrl}}/user/settings/ssh">
{{.i18n.Tr "settings.ssh_keys"}}
</a>
- {{if .HasOAuthService}}
- <a class="{{if .PageIsSettingsSocial}}active{{end}} item" href="{{AppSubUrl}}/user/settings/social">
- {{.i18n.Tr "settings.social"}}
- </a>
- {{end}}
<a class="{{if .PageIsSettingsApplications}}active{{end}} item" href="{{AppSubUrl}}/user/settings/applications">
{{.i18n.Tr "settings.applications"}}
</a>
diff --git a/templates/user/settings/social.tmpl b/templates/user/settings/social.tmpl
deleted file mode 100644
index f2a30da791..0000000000
--- a/templates/user/settings/social.tmpl
+++ /dev/null
@@ -1,33 +0,0 @@
-{{template "ng/base/head" .}}
-{{template "ng/base/header" .}}
-<div id="setting-wrapper" class="main-wrapper">
- <div id="user-profile-setting" class="container clear">
- {{template "user/settings/nav" .}}
- <div class="grid-4-5 left">
- <div class="setting-content">
- {{template "ng/base/alert" .}}
- <div id="setting-content">
- <div id="user-social-panel" class="panel panel-radius">
- <div class="panel-header"><strong>{{.i18n.Tr "settings.manage_social"}}</strong></div>
- <ul class="panel-body setting-list">
- <li>{{.i18n.Tr "settings.social_desc"}}</li>
- {{range .Socials}}
- <li class="ssh clear">
- <span class="active-icon left label label-{{if .HasRecentActivity}}green{{else}}gray{{end}} label-radius"></span>
- <i class="fa {{Oauth2Icon .Type}} fa-2x left"></i>
- <div class="ssh-content left">
- <p><strong>{{Oauth2Name .Type}}</strong></p>
- <p class="print">{{.Identity}}</p>
- <p class="activity"><i>{{$.i18n.Tr "settings.add_on"}} <span title="{{DateFmtLong .Created}}">{{DateFmtShort .Created}}</span> — <i class="octicon octicon-info"></i>{{$.i18n.Tr "settings.last_used"}} {{DateFmtShort .Updated}}</i></p>
- </div>
- <a class="right btn btn-small btn-red btn-header btn-radius" href="{{AppSubUrl}}/user/settings/social?remove={{.Id}}">{{$.i18n.Tr "settings.unbind"}}</a>
- </li>
- {{end}}
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
-</div>
-{{template "ng/base/footer" .}} \ No newline at end of file