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.

81 lines
3.3 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. {{template "base/head" .}}
  2. <div class="organization profile">
  3. {{/* overflow: auto is the clearfix - this avoids the image going beyond
  4. the container where it is supposed to stay inside. */}}
  5. <div class="ui container" style="overflow: auto">
  6. <img class="ui left" id="org-avatar" src="{{.Org.SizedRelAvatarLink 140}}"/>
  7. <div id="org-info">
  8. <div class="ui header">
  9. {{.Org.DisplayName}}
  10. {{if .IsOrganizationOwner}}<a class="text grey" href="{{.OrgLink}}/settings"><span class="octicon octicon-gear"></span></a>{{end}}
  11. </div>
  12. {{if .Org.Description}}<p class="desc">{{.Org.Description}}</p>{{end}}
  13. <div class="text grey meta">
  14. {{if .Org.Location}}<div class="item"><span class="octicon octicon-location"></span> <span>{{.Org.Location}}</span></div>{{end}}
  15. {{if .Org.Website}}<div class="item"><span class="octicon octicon-link"></span> <a target="_blank" rel="noopener" href="{{.Org.Website}}">{{.Org.Website}}</a></div>{{end}}
  16. </div>
  17. </div>
  18. </div>
  19. <div class="ui divider"></div>
  20. <div class="ui container">
  21. <div class="ui mobile reversed stackable grid">
  22. <div class="ui eleven wide column">
  23. {{if .IsOrganizationOwner}}
  24. <div class="text right">
  25. <a class="ui green button" href="{{AppSubUrl}}/repo/create?org={{.Org.ID}}"><i class="octicon octicon-repo-create"></i> {{.i18n.Tr "new_repo"}}</a>
  26. </div>
  27. <div class="ui divider"></div>
  28. {{end}}
  29. {{template "explore/repo_list" .}}
  30. {{template "base/paginate" .}}
  31. </div>
  32. <div class="ui five wide column">
  33. <h4 class="ui top attached header">
  34. <strong>{{.i18n.Tr "org.people"}}</strong>
  35. {{if .IsOrganizationMember}}
  36. <div class="ui right">
  37. <a class="text grey" href="{{.OrgLink}}/members">{{.Org.NumMembers}} <span class="octicon octicon-chevron-right"></span></a>
  38. </div>
  39. {{end}}
  40. </h4>
  41. <div class="ui attached segment members">
  42. {{$isMember := .IsOrganizationMember}}
  43. {{range .Members}}
  44. {{if or $isMember (.IsPublicMember $.Org.ID)}}
  45. <a href="{{.HomeLink}}" title="{{.Name}}{{if .FullName}} ({{.FullName}}){{end}}"><img class="ui avatar" src="{{.RelAvatarLink}}"></a>
  46. {{end}}
  47. {{end}}
  48. </div>
  49. {{if .IsOrganizationMember}}
  50. <div class="ui top attached header">
  51. <strong>{{.i18n.Tr "org.teams"}}</strong>
  52. <div class="ui right">
  53. <a class="text grey" href="{{.OrgLink}}/teams"><span>{{.Org.NumTeams}}</span> <span class="octicon octicon-chevron-right"></span></a>
  54. </div>
  55. </div>
  56. <div class="ui attached table segment teams">
  57. {{range .Teams}}
  58. <div class="item">
  59. <a href="{{$.OrgLink}}/teams/{{.LowerName}}"><strong class="team-name">{{.Name}}</strong></a>
  60. <p class="text grey">
  61. <a href="{{$.OrgLink}}/teams/{{.LowerName}}"><strong>{{.NumMembers}}</strong> {{$.i18n.Tr "org.lower_members"}}</a> ·
  62. <a href="{{$.OrgLink}}/teams/{{.LowerName}}/repositories"><strong>{{.NumRepos}}</strong> {{$.i18n.Tr "org.lower_repositories"}}</a>
  63. </p>
  64. </div>
  65. {{end}}
  66. </div>
  67. {{if .IsOrganizationOwner}}
  68. <div class="ui bottom attached segment">
  69. <a class="ui blue small button" href="{{.OrgLink}}/teams/new">{{.i18n.Tr "org.create_new_team"}}</a>
  70. </div>
  71. {{end}}
  72. {{end}}
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. {{template "base/footer" .}}