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.

65 lines
3.2 KiB

10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="gogs-body" class="container">
  4. <div id="gogs-user-profile" class="col-md-3">
  5. <div class="profile-avatar text-center">
  6. <a href="{{.Owner.HomeLink}}" class="center-block" data-toggle="tooltip" data-placement="bottom" title="Change Avatar">
  7. <img id="gogs-user-avatar" src="{{.Owner.AvatarLink}}?s=200" alt="user-avatar" title="username"/>
  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. {{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}}/{{.LowerName}}">{{.LowerName}}</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" .}}