Fork to maintain patches against the official gitea for https://code.ceondo.com https://github.com/go-gitea/gitea

profile.tmpl 4.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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 eq .SignedUserName .Owner.Name}}
  8. <a class="image poping up" href="{{AppSubUrl}}/user/settings/avatar" id="profile-avatar" data-content="{{.i18n.Tr "user.change_avatar"}}" data-variation="inverted tiny" data-position="bottom center">
  9. <img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}"/>
  10. </a>
  11. {{else}}
  12. <span class="image">
  13. <img src="{{.Owner.SizedRelAvatarLink 290}}" title="{{.Owner.Name}}"/>
  14. </span>
  15. {{end}}
  16. <div class="content">
  17. {{if .Owner.FullName}}<span class="header text center">{{.Owner.FullName}}</span>{{end}}
  18. <span class="username text center">{{.Owner.Name}}</span>
  19. </div>
  20. <div class="extra content">
  21. <ul class="text black">
  22. {{if .Owner.Location}}
  23. <li><i class="octicon octicon-location"></i> {{.Owner.Location}}</li>
  24. {{end}}
  25. {{if and $.ShowUserEmail .Owner.Email .IsSigned (not .Owner.KeepEmailPrivate)}}
  26. <li>
  27. <i class="octicon octicon-mail"></i>
  28. <a href="mailto:{{.Owner.Email}}" rel="nofollow">{{.Owner.Email}}</a>
  29. </li>
  30. {{end}}
  31. {{if .Owner.Website}}
  32. <li>
  33. <i class="octicon octicon-link"></i>
  34. <a target="_blank" rel="noopener" href="{{.Owner.Website}}">{{.Owner.Website}}</a>
  35. </li>
  36. {{end}}
  37. {{range .OpenIDs}}
  38. {{if .Show}}
  39. <li>
  40. <i class="fa fa-openid"></i>
  41. <a target="_blank" rel="noopener" href="{{.URI}}">{{.URI}}</a>
  42. </li>
  43. {{end}}
  44. {{end}}
  45. <li><i class="octicon octicon-clock"></i> {{.i18n.Tr "user.join_on"}} {{DateFmtShort .Owner.Created}}</li>
  46. <li>
  47. <i class="octicon octicon-person"></i>
  48. <a href="{{.Owner.HomeLink}}/followers">
  49. {{.Owner.NumFollowers}} {{.i18n.Tr "user.followers"}}
  50. </a>
  51. -
  52. <a href="{{.Owner.HomeLink}}/following">
  53. {{.Owner.NumFollowing}} {{.i18n.Tr "user.following"}}
  54. </a>
  55. </li>
  56. {{/*
  57. <li>
  58. <i class="octicon octicon-star"></i>
  59. <a href="{{.Owner.HomeLink}}/stars">
  60. {{.Owner.NumStars}} {{.i18n.Tr "user.starred"}}
  61. </a>
  62. </li>
  63. */}}
  64. {{if .Orgs}}
  65. <li>
  66. {{range .Orgs}}
  67. <a href="{{.HomeLink}}"><img class="ui mini image poping up" src="{{.RelAvatarLink}}" data-content="{{.Name}}" data-position="top center" data-variation="tiny inverted"></a>
  68. {{end}}
  69. </li>
  70. {{end}}
  71. {{if and .IsSigned (ne .SignedUserName .Owner.Name)}}
  72. <li class="follow">
  73. {{if .SignedUser.IsFollowing .Owner.ID}}
  74. <a class="ui basic red button" href="{{.Link}}/action/unfollow?redirect_to={{$.Link}}"><i class="octicon octicon-person"></i> {{.i18n.Tr "user.unfollow"}}</a>
  75. {{else}}
  76. <a class="ui basic green button" href="{{.Link}}/action/follow?redirect_to={{$.Link}}"><i class="octicon octicon-person"></i> {{.i18n.Tr "user.follow"}}</a>
  77. {{end}}
  78. </li>
  79. {{end}}
  80. </ul>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="ui eleven wide column">
  85. <div class="ui secondary pointing menu">
  86. <a class='{{if and (ne .TabName "activity") (ne .TabName "stars")}}active{{end}} item' href="{{.Owner.HomeLink}}">
  87. <i class="octicon octicon-repo"></i> {{.i18n.Tr "user.repositories"}}
  88. </a>
  89. <a class='{{if eq .TabName "activity"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=activity">
  90. <i class="octicon octicon-rss"></i> {{.i18n.Tr "user.activity"}}
  91. </a>
  92. <a class='{{if eq .TabName "stars"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=stars">
  93. <i class="octicon octicon-star"></i> {{.i18n.Tr "user.starred"}}
  94. </a>
  95. </div>
  96. {{if eq .TabName "activity"}}
  97. <div class="feeds">
  98. {{template "user/dashboard/feeds" .}}
  99. </div>
  100. {{else if eq .TabName "stars"}}
  101. <div class="stars">
  102. {{template "explore/search" .}}
  103. {{template "explore/repo_list" .}}
  104. {{template "base/paginate" .}}
  105. </div>
  106. {{else}}
  107. {{template "explore/search" .}}
  108. {{template "explore/repo_list" .}}
  109. {{template "base/paginate" .}}
  110. {{end}}
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. {{template "base/footer" .}}