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.

44 lines
1.8 KiB

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-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. <a class="btn btn-success pull-right btn-sm" href="/repo/create"><i class="fa fa-plus-square"></i>New Repo</a>
  33. </div>
  34. <div class="panel-body">
  35. <ul class="list-group">{{range .MyRepos}}
  36. <li class="list-group-item"><a href="/{{$.SignedUserName}}/{{.Name}}">
  37. <!-- <span class="stars pull-right"><i class="fa fa-star"></i>{{.NumStars}}</span> -->
  38. <i class="fa fa-book"></i>{{.Name}}</a>
  39. </li>{{end}}
  40. </ul>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. {{template "base/footer" .}}