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.

43 lines
1.8 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="gogs-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="gogs-body" class="container" data-page="user">
  15. {{if .HasInfo}}<div class="alert alert-info">{{.InfoMsg}}</div>{{end}}
  16. <div id="gogs-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="gogs-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"><i class="fa fa-book"></i><a href="/{{$.SignedUserName}}/{{.Name}}">{{.Name}}</a>
  37. <span class="stars pull-right"><i class="fa fa-star"></i>{{.NumStars}}</span>
  38. </li>{{end}}
  39. </ul>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. {{template "base/footer" .}}