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.3 KiB

10 years ago
10 years ago
10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="gogs-body" class="container" data-page="user">
  4. <div id="gogs-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="gogs-user-avatar" src="{{.Owner.AvatarLink}}?s=200" alt="user-avatar" title="{{.Owner.Name}}"/>
  8. </a>
  9. <span id="gogs-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="gogs-user-activity" class="col-md-9">
  27. <ul class="nav nav-tabs" id="gogs-user-act-tabs" data-init="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. {{$avatarLink := .Owner.AvatarLink}}
  36. {{range .Feeds}}
  37. <li>
  38. <i class="icon fa fa-{{ActionIcon .OpType}}"></i>
  39. <div class="info"><span class="meta">{{TimeSince .Created}}</span><br>{{ActionDesc . $avatarLink | str2html}}</div>
  40. <span class="clearfix"></span>
  41. </li>
  42. {{else}}
  43. <li>No any public activity yet.</li>
  44. {{end}}
  45. </ul>
  46. </div>
  47. {{else}}
  48. {{$owner := .Owner}}
  49. <div class="tab-pane active">
  50. <ul class="list-unstyled repo-list">
  51. {{range .Repos}}
  52. <li>
  53. <div class="meta pull-right"><!-- <i class="fa fa-star"></i> {{.NumStars}} --> <i class="fa fa-code-fork"></i> {{.NumForks}}</div>
  54. <h4>
  55. <a href="/{{$owner.Name}}/{{.LowerName}}">{{.LowerName}}</a>
  56. </h4>
  57. <p class="desc">{{.Description}}</p>
  58. <div class="info">Last updated {{.Updated|TimeSince}}</div>
  59. </li>
  60. {{end}}
  61. </ul>
  62. </div>
  63. {{end}}
  64. </div>
  65. </div>
  66. </div>
  67. {{template "base/footer" .}}