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.

profile.tmpl 4.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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-4 left">
  6. <div class="text-center">
  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 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-3-4 left">
  54. <ul class="menu menu-line" id="profile-header">
  55. <li>
  56. <a {{if not .TabName}}class="current"{{end}} href="{{.Owner.HomeLink}}"><i class="octicon octicon-repo"></i> {{.i18n.Tr "user.repositories"}}</a>
  57. </li>
  58. <li>
  59. <a {{if eq .TabName "activity"}}class="current"{{end}} href="{{.Owner.HomeLink}}?tab=activity"><i class="octicon octicon-repo"></i> {{.i18n.Tr "user.activity"}}</a>
  60. </li>
  61. </ul>
  62. <div class="tab-content">
  63. {{if eq .TabName "activity"}}
  64. <div class="tab-pane active" id="dashboard-news">
  65. <br>
  66. {{template "user/dashboard/feeds" .}}
  67. </div>
  68. {{else}}
  69. <div class="tab-pane active">
  70. <div id="org-repo-list">
  71. {{range .Repos}}
  72. {{if not .IsPrivate}}
  73. <div class="org-repo-item">
  74. <ul class="org-repo-status right">
  75. <li><i class="octicon octicon-star"></i> {{.NumStars}}</li>
  76. <li><i class="octicon octicon-git-branch"></i> {{.NumForks}}</li>
  77. </ul>
  78. <h2><a href="{{AppSubUrl}}/{{$.Owner.Name}}/{{.Name}}">{{.Name}}</a></h2>
  79. <p class="org-repo-description">{{.Description}}</p>
  80. <p class="org-repo-updated">{{$.i18n.Tr "org.repo_updated"}} {{TimeSince .Updated $.i18n.Lang}}</p>
  81. </div>
  82. {{end}}
  83. {{end}}
  84. </div>
  85. </div>
  86. {{end}}
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. {{template "ng/base/footer" .}}