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.

69 lines
2.7 KiB

9 years ago
  1. {{template "base/head" .}}
  2. <div class="user profile">
  3. <div class="ui container">
  4. <div class="ui grid">
  5. <div class="ui five wide column">
  6. <div class="ui card">
  7. {{if and (.Owner.UseCustomAvatar) (eq .SignedUserName .Owner.Name)}}
  8. <a class="image poping up" href="{{AppSubUrl}}/user/settings" id="profile-avatar" data-content="{{.i18n.Tr "user.change_custom_avatar"}}" data-variation="inverted tiny" data-position="bottom center">
  9. <img src="{{.Owner.AvatarLink}}?s=290" title="{{.Owner.Name}}"/>
  10. </a>
  11. {{else if eq .SignedUserName .Owner.Name}}
  12. <a class="image poping up" href="http://gravatar.com/emails/" id="profile-avatar" data-content="{{.i18n.Tr "user.change_avatar"}}" data-variation="inverted tiny" data-position="bottom center">
  13. <img src="{{.Owner.AvatarLink}}?s=290" title="{{.Owner.Name}}"/>
  14. </a>
  15. {{else}}
  16. <span class="image">
  17. <img src="{{.Owner.AvatarLink}}?s=290" title="{{.Owner.Name}}"/>
  18. </span>
  19. {{end}}
  20. <div class="content">
  21. {{if .Owner.FullName}}<span class="header text center">{{.Owner.FullName}}</span>{{end}}
  22. <span class="username text center">{{.Owner.Name}}</span>
  23. </div>
  24. <div class="extra content">
  25. <ul class="text black">
  26. {{if .Owner.Location}}
  27. <li><i class="icon octicon octicon-location"></i> {{.Owner.Location}}</li>
  28. {{end}}
  29. {{if and .Owner.Email .IsSigned}}
  30. <li>
  31. <i class="icon octicon octicon-mail"></i>
  32. <a href="mailto:{{.Owner.Email}}" rel="nofollow">{{.Owner.Email}}</a>
  33. </li>
  34. {{end}}
  35. {{if .Owner.Website}}
  36. <li>
  37. <i class="icon octicon octicon-link"></i>
  38. <a target="_blank" href="{{.Owner.Website}}">{{.Owner.Website}}</a>
  39. </li>
  40. {{end}}
  41. <li><i class="icon octicon octicon-clock"></i> {{.i18n.Tr "user.join_on"}} {{DateFmtShort .Owner.Created}}</li>
  42. </ul>
  43. </div>
  44. </div>
  45. </div>
  46. <div class="ui eleven wide column">
  47. <div class="ui secondary pointing menu">
  48. <a class="{{if ne .TabName "activity"}}active{{end}} item" href="{{.Owner.HomeLink}}">
  49. <i class="icon octicon octicon-repo"></i> {{.i18n.Tr "user.repositories"}}
  50. </a>
  51. <a class="item">
  52. <a class="{{if eq .TabName "activity"}}active{{end}} item" href="{{.Owner.HomeLink}}?tab=activity">
  53. <i class="icon octicon octicon-rss"></i> {{.i18n.Tr "user.activity"}}
  54. </a>
  55. </a>
  56. </div>
  57. {{if ne .TabName "activity"}}
  58. {{template "explore/repo_list" .}}
  59. {{else}}
  60. <br>
  61. <div class="feeds">
  62. {{template "user/dashboard/feeds" .}}
  63. </div>
  64. {{end}}
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. {{template "base/footer" .}}