diff options
author | Patrick G <geek1011@users.noreply.github.com> | 2017-03-15 22:39:38 +0000 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-03-15 23:39:38 +0100 |
commit | efbb895ebe33327630195ac52f10bd3d85bbae00 (patch) | |
tree | 988e09097921de93e11149fcdff7b3951ae39e90 /templates/user/settings/account_link.tmpl | |
parent | 03d79983ee40a22039b5fd1a204499977ab87254 (diff) | |
download | gitea-efbb895ebe33327630195ac52f10bd3d85bbae00.tar.gz gitea-efbb895ebe33327630195ac52f10bd3d85bbae00.zip |
Cleaner ui for admin, repo settings, and user settings page (#1269) (#1270)
Diffstat (limited to 'templates/user/settings/account_link.tmpl')
-rw-r--r-- | templates/user/settings/account_link.tmpl | 50 |
1 files changed, 23 insertions, 27 deletions
diff --git a/templates/user/settings/account_link.tmpl b/templates/user/settings/account_link.tmpl index fa14cb525b..4b19bea75c 100644 --- a/templates/user/settings/account_link.tmpl +++ b/templates/user/settings/account_link.tmpl @@ -1,35 +1,31 @@ {{template "base/head" .}} <div class="user settings account_link"> + {{template "user/settings/navbar" .}} <div class="ui container"> - <div class="ui grid"> - {{template "user/settings/navbar" .}} - <div class="twelve wide column content"> - {{template "base/alert" .}} - <h4 class="ui top attached header"> - {{.i18n.Tr "settings.manage_account_links"}} - </h4> - <div class="ui attached segment"> - <div class="ui key list"> - <div class="item"> - {{.i18n.Tr "settings.manage_account_links_desc"}} - </div> - {{if .AccountLinks}} - {{range $loginSource, $provider := .AccountLinks}} - <div class="item ui grid"> - <div class="column"> - <strong>{{$provider}}</strong> - {{if $loginSource.IsActived}}<span class="text red">{{$.i18n.Tr "settings.active"}}</span>{{end}} - <div class="ui right"> - <button class="ui red tiny button delete-button" data-url="{{$.Link}}" data-id="{{$loginSource.ID}}"> - {{$.i18n.Tr "settings.delete_key"}} - </button> - </div> - </div> + {{template "base/alert" .}} + <h4 class="ui top attached header"> + {{.i18n.Tr "settings.manage_account_links"}} + </h4> + <div class="ui attached segment"> + <div class="ui key list"> + <div class="item"> + {{.i18n.Tr "settings.manage_account_links_desc"}} + </div> + {{if .AccountLinks}} + {{range $loginSource, $provider := .AccountLinks}} + <div class="item ui grid"> + <div class="column"> + <strong>{{$provider}}</strong> + {{if $loginSource.IsActived}}<span class="text red">{{$.i18n.Tr "settings.active"}}</span>{{end}} + <div class="ui right"> + <button class="ui red tiny button delete-button" data-url="{{$.Link}}" data-id="{{$loginSource.ID}}"> + {{$.i18n.Tr "settings.delete_key"}} + </button> </div> - {{end}} - {{end}} + </div> </div> - </div> + {{end}} + {{end}} </div> </div> </div> |