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.

66 lines
3.2 KiB

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. <span id="user-name" class="center-block">{{.Owner.Name}}</span>
  10. </div>
  11. <div class="profile-info">
  12. <ul class="list-group">
  13. {{if .Owner.Location}}
  14. <li class="list-group-item"><i class="fa fa-thumb-tack"></i>{{.Owner.Location}}</li>
  15. {{end}}
  16. {{if .Owner.Email}}
  17. <li class="list-group-item"><i class="fa fa-envelope"></i><a href="mailto:{{.Owner.Email}}">{{.Owner.Email}}</a></li>
  18. {{end}}
  19. {{if .Owner.Website}}
  20. <li class="list-group-item"><i class="fa fa-link"></i><a target="_blank" href="{{.Owner.Website}}">{{.Owner.Website}}</a></li>
  21. {{end}}
  22. <li class="list-group-item"><i class="fa fa-clock-o"></i>Joined on {{DateFormat .Owner.Created "M d, Y"}}</li>
  23. </ul>
  24. </div>
  25. </div>
  26. <div id="user-activity" class="col-md-9">
  27. <ul class="nav nav-tabs" id="user-act-tabs">
  28. <li{{if not .TabName}} class="active"{{end}}><a href="{{.Owner.HomeLink}}"><i class="fa fa-gittip"></i>Repositories</a></li>
  29. <li{{if eq .TabName "activity"}} class="active"{{end}}><a href="{{.Owner.HomeLink}}?tab=activity"><i class="fa fa-rss"></i>Public Activity</a></li>
  30. </ul>
  31. <div class="tab-content">
  32. {{if eq .TabName "activity"}}
  33. <div class="tab-pane active">
  34. <ul class="list-unstyled activity-list">
  35. {{range .Feeds}}
  36. <li>
  37. <i class="icon fa fa-{{ActionIcon .OpType}}"></i>
  38. <div class="info"><span class="meta">{{TimeSince .Created}}</span><br>{{ActionDesc . | str2html}}</div>
  39. <span class="clearfix"></span>
  40. </li>
  41. {{else}}
  42. <li>No any public activity yet.</li>
  43. {{end}}
  44. </ul>
  45. </div>
  46. {{else}}
  47. {{$owner := .Owner}}
  48. <div class="tab-pane active">
  49. <ul class="list-unstyled repo-list">
  50. {{range .Repos}}
  51. <li>
  52. <div class="meta pull-right"><!-- <i class="fa fa-star"></i> {{.NumStars}} --> <i class="fa fa-code-fork"></i> {{.NumForks}}</div>
  53. <h4>
  54. <a href="/{{$owner.Name}}/{{.Name}}">{{.Name}}</a>
  55. </h4>
  56. <p class="desc">{{.Description}}</p>
  57. <div class="info">Last updated {{.Updated|TimeSince}}</div>
  58. </li>
  59. {{end}}
  60. </ul>
  61. </div>
  62. {{end}}
  63. </div>
  64. </div>
  65. </div>
  66. {{template "base/footer" .}}