You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

organizations.tmpl 3.0 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {{template "base/head" .}}
  2. <div class="explore users">
  3. {{template "explore/search" .}}
  4. <div class="ui container">
  5. <div class="ui grid">
  6. {{template "explore/navbar" .}}
  7. <div class="sixteen wide mobile ten wide tablet ten wide computer column">
  8. <h2 class="ui left floated medium header">
  9. {{.i18n.Tr "explore.organizations"}}
  10. </h2>
  11. <div class="ui right floated secondary filter menu">
  12. <!-- Sort -->
  13. <div class="ui right dropdown type jump item">
  14. <span class="text">
  15. {{.i18n.Tr "repo.issues.filter_sort"}}
  16. <i class="dropdown icon"></i>
  17. </span>
  18. <div class="menu">
  19. <a class="{{if eq .SortType "newest"}}active{{end}} item" href="{{$.Link}}?sort=newest&q={{$.Keyword}}&tab={{$.TabName}}">{{.i18n.Tr "repo.issues.filter_sort.latest"}}</a>
  20. <a class="{{if eq .SortType "oldest"}}active{{end}} item" href="{{$.Link}}?sort=oldest&q={{$.Keyword}}&tab={{$.TabName}}">{{.i18n.Tr "repo.issues.filter_sort.oldest"}}</a>
  21. <a class="{{if eq .SortType "alphabetically"}}active{{end}} item" href="{{$.Link}}?sort=alphabetically&q={{$.Keyword}}&tab={{$.TabName}}">{{.i18n.Tr "repo.issues.label.filter_sort.alphabetically"}}</a>
  22. <a class="{{if eq .SortType "reversealphabetically"}}active{{end}} item" href="{{$.Link}}?sort=reversealphabetically&q={{$.Keyword}}&tab={{$.TabName}}">{{.i18n.Tr "repo.issues.label.filter_sort.reverse_alphabetically"}}</a>
  23. <a class="{{if eq .SortType "recentupdate"}}active{{end}} item" href="{{$.Link}}?sort=recentupdate&q={{$.Keyword}}&tab={{$.TabName}}">{{.i18n.Tr "repo.issues.filter_sort.recentupdate"}}</a>
  24. <a class="{{if eq .SortType "leastupdate"}}active{{end}} item" href="{{$.Link}}?sort=leastupdate&q={{$.Keyword}}&tab={{$.TabName}}">{{.i18n.Tr "repo.issues.filter_sort.leastupdate"}}</a>
  25. </div>
  26. </div>
  27. </div>
  28. <div class="ui clearing divider"></div>
  29. <div class="ui user list">
  30. {{range .Users}}
  31. <div class="item">
  32. <img class="ui avatar image" src="{{.RelAvatarLink}}">
  33. <div class="content">
  34. <span class="header">
  35. <a href="{{.HomeLink}}">{{.Name}}</a> {{.FullName}}
  36. {{if .Visibility.IsPrivate}}
  37. <span class="text gold">{{svg "octicon-lock" 16}}</span>
  38. {{end}}
  39. </span>
  40. <div class="description">
  41. {{if .Location}}
  42. {{svg "octicon-location" 16}} {{.Location}}
  43. {{end}}
  44. {{if and .Website}}
  45. {{svg "octicon-link" 16}}
  46. <a href="{{.Website}}" rel="nofollow">{{.Website}}</a>
  47. {{end}}
  48. {{svg "octicon-clock" 16}} {{$.i18n.Tr "user.join_on"}} {{.CreatedUnix.FormatShort}}
  49. </div>
  50. </div>
  51. </div>
  52. {{else}}
  53. <div>{{$.i18n.Tr "explore.org_no_results"}}</div>
  54. {{end}}
  55. </div>
  56. {{template "base/paginate" .}}
  57. </div>
  58. <div class="sixteen wide mobile six wide tablet four wide computer column">
  59. {{template "explore/repo_right" .}}
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. {{template "base/footer" .}}