watchers.tmpl 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {{template "ng/base/head" .}}
  2. {{template "ng/base/header" .}}
  3. <div id="repo-wrapper">
  4. {{template "repo/header_old" .}}
  5. <div id="repo-content" class="clear container">
  6. <div id="repo-main" class="left grid-5-6">
  7. <div id="stars">
  8. <h4>
  9. <strong>{{.i18n.Tr "repos.watches"}}</strong>
  10. </h4>
  11. <ol>
  12. {{range .Watchers}}
  13. <li>
  14. <a href="{{AppSubUrl}}/{{.Name}}">
  15. <img class="avatar" src="{{.AvatarLink}}" title="{{.Name}}"/>
  16. <h3>{{.Name}}</h3>
  17. </a>
  18. <p>
  19. {{if .Website}}
  20. <span class="octicon octicon-link"></span> <a href="{{.Website}}" target="_blank">{{.Website}}</a>
  21. {{else if .Location}}
  22. <span class="octicon octicon-location"></span> {{.Location}}
  23. {{else}}
  24. <span class="octicon octicon-clock"></span> {{$.i18n.Tr "user.join_on"}} {{DateFmtShort .Created}}
  25. {{end}}
  26. </p>
  27. </li>
  28. {{end}}
  29. </ol>
  30. {{with .Page}}
  31. {{if gt .TotalPages 1}}
  32. <div class="pagination">
  33. {{if .HasPrevious}}
  34. <a href="{{$.RepoLink}}/watchers?page={{.Previous}}">{{$.i18n.Tr "issues.previous"}}</a>
  35. {{end}}
  36. {{range .Pages}}
  37. {{if eq .Num -1}}
  38. <a class="disabled item">...</a>
  39. {{else}}
  40. <a class="{{if .IsCurrent}}active{{end}} item" {{if not .IsCurrent}}href="{{$.RepoLink}}/watchers?page={{.Num}}"{{end}}>{{.Num}}</a>
  41. {{end}}
  42. {{end}}
  43. {{if .HasNext}}
  44. <a href="{{$.RepoLink}}/watchers?page={{.Next}}">{{$.i18n.Tr "issues.next"}}</a>
  45. {{end}}
  46. </div>
  47. {{end}}
  48. {{end}}
  49. </div>
  50. </div>
  51. {{template "repo/sidebar" .}}
  52. </div>
  53. </div>
  54. {{template "ng/base/footer" .}}