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.

53 lines
2.4 KiB

10 years ago
10 years ago
10 years ago
  1. {{template "base/head" .}}
  2. {{template "base/navbar" .}}
  3. <div id="body-nav">
  4. <div class="container">
  5. <ul class="nav nav-pills pull-right">
  6. <li class="active"><a href="/">Feed</a></li>
  7. <li><a href="/issues">Issues</a></li>
  8. <!-- <li><a href="/pulls">Pull Requests</a></li>
  9. <li><a href="/stars">Stars</a></li> -->
  10. </ul>
  11. <h3>News Feed</h3>
  12. </div>
  13. </div>
  14. <div id="body" class="container" data-page="user">
  15. {{if .HasInfo}}<div class="alert alert-info">{{.InfoMsg}}</div>{{end}}
  16. <div id="feed-left" class="col-md-8">
  17. <ul class="list-unstyled activity-list">
  18. {{range .Feeds}}
  19. <li>
  20. <i class="icon fa fa-{{ActionIcon .OpType}}"></i>
  21. <div class="info"><span class="meta">{{TimeSince .Created}}</span><br>{{ActionDesc . | str2html}}</div>
  22. <span class="clearfix"></span>
  23. </li>
  24. {{else}}
  25. <li>No any activity yet.</li>
  26. {{end}}
  27. </ul>
  28. </div>
  29. <div id="feed-right" class="col-md-4">
  30. <div class="panel panel-default repo-panel">
  31. <div class="panel-heading">Your Repositories
  32. <div class="btn-group pull-right" id="user-dashboard-repo-new">
  33. <button type="button" class="btn btn-success btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus-square"></i>New</button>
  34. <div class="dropdown-menu dropdown-menu-right">
  35. <ul class="list-unstyled">
  36. <li><a href="/repo/create"><i class="fa fa-book"></i>Repository</a></li>
  37. <li><a href="/repo/mirror"><i class="fa fa-clipboard"></i>Mirror</a></li>
  38. <!-- <li><a href="#"><i class="fa fa-users"></i>Organization</a></li> -->
  39. </ul>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="panel-body">
  44. <ul class="list-group">{{range .MyRepos}}
  45. <li class="list-group-item"><a href="/{{$.SignedUserName}}/{{.Name}}">
  46. <!-- <span class="stars pull-right"><i class="fa fa-star"></i>{{.NumStars}}</span> -->
  47. <i class="fa fa-book"></i>{{.Name}}</a>
  48. </li>{{end}}
  49. </ul>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. {{template "base/footer" .}}