You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.9 KiB

  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="setting-wrapper" class="main-wrapper">
  4. <div id="user-profile-setting" class="container clear">
  5. {{template "user/settings/nav" .}}
  6. <div class="grid-4-5 left">
  7. <div class="setting-content">
  8. {{template "ng/base/alert" .}}
  9. <div id="setting-content">
  10. <div id="user-social-panel" class="panel panel-radius">
  11. <div class="panel-header"><strong>{{.i18n.Tr "settings.manage_social"}}</strong></div>
  12. <ul class="panel-body setting-list">
  13. <li>{{.i18n.Tr "settings.social_desc"}}</li>
  14. {{range .Socials}}
  15. <li class="ssh clear">
  16. <span class="active-icon left label label-{{if .HasRecentActivity}}green{{else}}gray{{end}} label-radius"></span>
  17. <i class="fa {{Oauth2Icon .Type}} fa-2x left"></i>
  18. <div class="ssh-content left">
  19. <p><strong>{{Oauth2Name .Type}}</strong></p>
  20. <p class="print">{{.Identity}}</p>
  21. <p class="activity"><i>{{$.i18n.Tr "settings.add_on"}} <span title="{{DateFormat .Created "r"}}">{{DateFormat .Created "M d, Y"}}</span> — <i class="octicon octicon-info"></i>{{$.i18n.Tr "settings.last_used"}} {{DateFormat .Updated "M d, Y"}}</i></p>
  22. </div>
  23. <a class="right btn btn-small btn-red btn-header btn-radius" href="{{AppSubUrl}}/user/settings/social?remove={{.Id}}">{{$.i18n.Tr "settings.unbind"}}</a>
  24. </li>
  25. {{end}}
  26. </ul>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. {{template "ng/base/footer" .}}