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.

81 lines
4.0 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="body" class="container" data-page="user">
  4. <div id="user-profile" class="col-md-3">
  5. <div class="profile-avatar text-center">
  6. <a href="http://gravatar.com/emails/" class="center-block" data-toggle="tooltip" data-placement="bottom" title="Change your avatar at gravatar.com">
  7. <img id="user-avatar" src="{{.Owner.AvatarLink}}?s=200" alt="user-avatar" title="{{.Owner.Name}}"/>
  8. </a>
  9. {{if .Owner.FullName}}<span id="user-full-name" class="center-block">{{.Owner.FullName}}</span>{{end}}
  10. <span id="user-name" class="center-block">{{.Owner.Name}}</span>
  11. </div>
  12. <div class="profile-info">
  13. <ul class="list-group">
  14. {{if .Owner.Location}}
  15. <li class="list-group-item"><i class="fa fa-thumb-tack"></i>{{.Owner.Location}}</li>
  16. {{end}}
  17. {{if .Owner.Email}}
  18. <li class="list-group-item"><i class="fa fa-envelope"></i><a href="mailto:{{.Owner.Email}}" rel="nofollow">{{.Owner.Email}}</a></li>
  19. {{end}}
  20. {{if .Owner.Website}}
  21. <li class="list-group-item"><i class="fa fa-link"></i><a target="_blank" href="{{.Owner.Website}}">{{.Owner.Website}}</a></li>
  22. {{end}}
  23. <li class="list-group-item"><i class="fa fa-clock-o"></i>Joined on {{DateFormat .Owner.Created "M d, Y"}}</li>
  24. <!-- <hr> -->
  25. <!-- <li class="list-group-item" style="padding-top: 5px;">
  26. <div class="profile-rel">
  27. <div class="col-md-6 followers">
  28. <strong>123</strong>
  29. <p>followers</p>
  30. </div>
  31. <div class="col-md-6 following">
  32. <strong>123</strong>
  33. <p>following</p>
  34. </div>
  35. </div>
  36. </li>
  37. <hr> -->
  38. </ul>
  39. </div>
  40. </div>
  41. <div id="user-activity" class="col-md-9">
  42. <ul class="nav nav-tabs" id="user-act-tabs">
  43. <li{{if not .TabName}} class="active"{{end}}><a href="{{.Owner.HomeLink}}"><i class="fa fa-gittip"></i>Repositories</a></li>
  44. <li{{if eq .TabName "activity"}} class="active"{{end}}><a href="{{.Owner.HomeLink}}?tab=activity"><i class="fa fa-rss"></i>Public Activity</a></li>
  45. </ul>
  46. <div class="tab-content">
  47. {{if eq .TabName "activity"}}
  48. <div class="tab-pane active">
  49. <ul class="list-unstyled activity-list">
  50. {{range .Feeds}}
  51. <li>
  52. <i class="icon fa fa-{{ActionIcon .GetOpType}}"></i>
  53. <div class="info"><span class="meta">{{TimeSince .Created $.Lang}}</span><br>{{ActionDesc . | str2html}}</div>
  54. <span class="clearfix"></span>
  55. </li>
  56. {{else}}
  57. <li>No public activity yet.</li>
  58. {{end}}
  59. </ul>
  60. </div>
  61. {{else}}
  62. <div class="tab-pane active">
  63. <ul class="list-unstyled repo-list">
  64. {{range .Repos}}
  65. <li>
  66. <div class="meta pull-right"><!-- <i class="fa fa-star"></i> {{.NumStars}} --> <i class="fa fa-code-fork"></i> {{.NumForks}}</div>
  67. <h4>
  68. <a href="/{{$.Owner.Name}}/{{.Name}}">{{.Name}}{{if .IsPrivate}} <span class="label label-default">Private</span>{{end}}</a>
  69. </h4>
  70. <p class="desc">{{.Description}}</p>
  71. <div class="info">Last updated {{TimeSince .Updated $.Lang}}</div>
  72. </li>
  73. {{end}}
  74. </ul>
  75. </div>
  76. {{end}}
  77. </div>
  78. </div>
  79. </div>
  80. {{template "base/footer" .}}