profile.tmpl 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div class="main-wrapper">
  4. <div id="user-profile-page" class="container clear">
  5. <div class="grid-1-5 left">
  6. <div>
  7. <a href="http://gravatar.com/emails/" id="profile-avatar" original-title="{{.i18n.Tr "user.change_avatar"}}">
  8. <img class="profile-avatar" src="{{.Owner.AvatarLink}}?s=200"title="{{.Owner.Name}}"/>
  9. </a>
  10. <div class="text-center" id="profile-name">
  11. {{if .Owner.FullName}}<span id="profile-fullname" class="center-block">{{.Owner.FullName}}</span><br>{{end}}
  12. <span class="center-block" id="profile-username">{{.Owner.Name}}</span>
  13. </div>
  14. </div>
  15. <div class="profile-info">
  16. <hr>
  17. <ul class="list-no-style">
  18. {{if .Owner.Location}}
  19. <li class="list-group-item"><i class="octicon octicon-location"></i>&nbsp;&nbsp;{{.Owner.Location}}</li>
  20. {{end}}
  21. {{if .Owner.Email}}
  22. <li class="list-group-item"><i class="octicon octicon-mail"></i>&nbsp;&nbsp;<a href="mailto:{{.Owner.Email}}" rel="nofollow">{{.Owner.Email}}</a></li>
  23. {{end}}
  24. {{if .Owner.Website}}
  25. <li class="list-group-item"><i class="octicon octicon-link"></i>&nbsp;&nbsp;<a target="_blank" href="{{.Owner.Website}}">{{.Owner.Website}}</a></li>
  26. {{end}}
  27. <li class="list-group-item"><i class="octicon octicon-clock"></i>&nbsp;&nbsp;{{.i18n.Tr "user.join_on"}} {{DateFormat .Owner.Created "M d, Y"}}</li>
  28. </ul>
  29. <hr>
  30. <ul class="list-no-style">
  31. <li class="list-group-item profile-rel">
  32. <a class="text-black" href="">
  33. <strong>{{.Owner.NumFollowers}}</strong>
  34. <p>{{.i18n.Tr "user.followers"}}</p>
  35. </a>
  36. </li>
  37. <li class="list-group-item profile-rel">
  38. <a class="text-black" href="">
  39. <strong>{{.Owner.NumStars}}</strong>
  40. <p>{{.i18n.Tr "user.starred"}}</p>
  41. </a>
  42. </li>
  43. <li class="list-group-item profile-rel">
  44. <a class="text-black" href="">
  45. <strong>{{.Owner.NumFollowings}}</strong>
  46. <p>{{.i18n.Tr "user.following"}}</p>
  47. </a>
  48. </li>
  49. </ul>
  50. <hr>
  51. </div>
  52. </div>
  53. <div class="grid-4-5 left">
  54. <div id="profile-body">
  55. <ul class="menu menu-line" id="profile-header">
  56. <li>
  57. <a {{if not .TabName}}class="current"{{end}} href="{{.Owner.HomeLink}}"><i class="octicon octicon-repo"></i> {{.i18n.Tr "user.repositories"}}</a>
  58. </li>
  59. <li>
  60. <a {{if eq .TabName "activity"}}class="current"{{end}} href="{{.Owner.HomeLink}}?tab=activity"><i class="octicon octicon-repo"></i> {{.i18n.Tr "user.activity"}}</a>
  61. </li>
  62. </ul>
  63. <div class="tab-content">
  64. {{if eq .TabName "activity"}}
  65. <div class="tab-pane active" id="dashboard-news">
  66. <br>
  67. {{template "user/dashboard/feeds" .}}
  68. </div>
  69. {{else}}
  70. <div class="tab-pane active">
  71. <div id="org-repo-list">
  72. {{range .Repos}}
  73. {{if not .IsPrivate}}
  74. <div class="org-repo-item">
  75. <ul class="org-repo-status right">
  76. <li><i class="octicon octicon-star"></i> {{.NumStars}}</li>
  77. <li><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li>
  78. </ul>
  79. <h2><a href="{{AppSubUrl}}/{{$.Owner.Name}}/{{.Name}}">{{.Name}}</a></h2>
  80. <p class="org-repo-description">{{.Description}}</p>
  81. <p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
  82. </div>
  83. {{end}}
  84. {{end}}
  85. </div>
  86. </div>
  87. {{end}}
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. {{template "ng/base/footer" .}}