diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-09 17:25:02 -0700 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-09 17:25:02 -0700 |
commit | 78defd238c939ff577041f2e7b95b2ae48a9fb27 (patch) | |
tree | 5dd168d880ece655796558874f352b2c2263e965 /templates/user/settings/social.tmpl | |
parent | 08c6d07aad65f45efd5bf9f50d9cda68f59c0e69 (diff) | |
download | gitea-78defd238c939ff577041f2e7b95b2ae48a9fb27.tar.gz gitea-78defd238c939ff577041f2e7b95b2ae48a9fb27.zip |
Page: Manage social accounts
Diffstat (limited to 'templates/user/settings/social.tmpl')
-rw-r--r-- | templates/user/settings/social.tmpl | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/templates/user/settings/social.tmpl b/templates/user/settings/social.tmpl index 7ff2ea237f..bcbc1fc567 100644 --- a/templates/user/settings/social.tmpl +++ b/templates/user/settings/social.tmpl @@ -7,8 +7,23 @@ <div class="setting-content"> {{template "ng/base/alert" .}} <div id="setting-content"> - <div id="user-profile-setting-content" class="panel panel-radius"> - <p class="panel-header"><strong>{{.i18n.Tr "settings.manage_social"}}</strong></p> + <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"}} {{DateFormat .Created "M d, Y"}} — <i class="octicon octicon-info"></i>{{$.i18n.Tr "settings.last_used"}} {{DateFormat .Updated "M d, Y"}}</i></p> + </div> + <a class="right btn btn-small btn-red btn-header btn-radius" href="/user/settings/social?remove={{.Id}}">{{$.i18n.Tr "settings.unbind"}}</a> + </li> + {{end}} + </ul> </div> </div> </div> |