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.

85 lines
3.2 KiB

9 years ago
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. <div class="ui container">
  4. <div class="ui grid">
  5. <div class="ui sixteen wide column">
  6. <img class="ui left" id="org-avatar" src="{{.Org.AvatarLink}}?s=140"/>
  7. <div id="org-info">
  8. <div class="ui header">
  9. {{.Org.FullName}}
  10. {{if .IsOrganizationOwner}}<a class="text grey" href="{{.OrgLink}}/settings"><span class="icon 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="icon octicon octicon-location"></span> <span>{{.Org.Location}}</span></div>{{end}}
  15. {{if .Org.Website}}<div class="item"><span class="icon octicon octicon-link"></span> <a target="_blank" href="{{.Org.Website}}">{{.Org.Website}}</a></div>{{end}}
  16. </div>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="ui divider"></div>
  22. <div class="ui container">
  23. <div class="ui grid">
  24. <div class="ui eleven wide column">
  25. {{if .IsOrganizationOwner}}
  26. <div class="text right">
  27. <a class="ui green button" href="{{AppSubUrl}}/repo/create?org={{.Org.Id}}"><i class="octicon octicon-repo-create"></i> {{.i18n.Tr "new_repo"}}</a>
  28. </div>
  29. <div class="ui divider"></div>
  30. {{end}}
  31. {{template "explore/repo_list" .}}
  32. </div>
  33. <div class="ui five wide column">
  34. <h4 class="ui top attached header">
  35. <strong>{{.i18n.Tr "org.people"}}</strong>
  36. {{if .IsOrganizationMember}}
  37. <div class="ui right">
  38. <a class="text grey" href="{{.OrgLink}}/members"><strong>{{.Org.NumMembers}}</strong><span class="octicon octicon-chevron-right"></span></a>
  39. </div>
  40. {{end}}
  41. </h4>
  42. <div class="ui attached segment members">
  43. {{$isMember := .IsOrganizationMember}}
  44. {{range .Members}}
  45. {{if or $isMember (.IsPublicMember $.Org.Id)}}
  46. <a href="{{.HomeLink}}" title="{{.Name}}"><img class="ui avatar" src="{{.AvatarLink}}"></a>
  47. {{end}}
  48. {{end}}
  49. </div>
  50. {{if .IsOrganizationOwner}}
  51. <div class="ui bottom attached segment">
  52. <a class="ui blue small button" href="{{.OrgLink}}/invitations/new">{{.i18n.Tr "org.invite_someone"}}</a>
  53. </div>
  54. {{end}}
  55. {{if .IsOrganizationMember}}
  56. <div class="ui top attached header">
  57. <strong>{{.i18n.Tr "org.teams"}}</strong>
  58. <div class="ui right">
  59. <a class="text grey" href="{{.OrgLink}}/teams"><strong>{{.Org.NumTeams}}</strong><span class="octicon octicon-chevron-right"></span></a>
  60. </div>
  61. </div>
  62. <div class="ui attached table segment teams">
  63. {{range .Teams}}
  64. <div class="item">
  65. <a href="{{$.OrgLink}}/teams/{{.LowerName}}"><strong class="team-name">{{.Name}}</strong></a>
  66. <p class="text grey">{{.NumMembers}} {{$.i18n.Tr "org.lower_members"}} · {{.NumRepos}} {{$.i18n.Tr "org.lower_repositories"}}</p>
  67. </div>
  68. {{end}}
  69. </div>
  70. {{if .IsOrganizationOwner}}
  71. <div class="ui bottom attached segment">
  72. <a class="ui blue small button" href="{{.OrgLink}}/teams/new">{{.i18n.Tr "org.create_new_team"}}</a>
  73. </div>
  74. {{end}}
  75. {{end}}
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. {{template "base/footer" .}}