本站源代码
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

83 行
3.3KB

  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 noreferrer" 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_search" .}}
  30. {{template "explore/repo_list" .}}
  31. {{template "base/paginate" .}}
  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">{{.Org.NumMembers}} <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}}{{if .FullName}} ({{.FullName}}){{end}}"><img class="ui avatar" src="{{.RelAvatarLink}}"></a>
  47. {{end}}
  48. {{end}}
  49. </div>
  50. {{if .IsOrganizationMember}}
  51. <div class="ui top attached header">
  52. <strong>{{.i18n.Tr "org.teams"}}</strong>
  53. <div class="ui right">
  54. <a class="text grey" href="{{.OrgLink}}/teams"><span>{{.Org.NumTeams}}</span> <span class="octicon octicon-chevron-right"></span></a>
  55. </div>
  56. </div>
  57. <div class="ui attached table segment teams">
  58. {{range .Teams}}
  59. <div class="item">
  60. <a href="{{$.OrgLink}}/teams/{{.LowerName}}"><strong class="team-name">{{.Name}}</strong></a>
  61. <p class="text grey">
  62. <a href="{{$.OrgLink}}/teams/{{.LowerName}}"><strong>{{.NumMembers}}</strong> {{$.i18n.Tr "org.lower_members"}}</a> ·
  63. <a href="{{$.OrgLink}}/teams/{{.LowerName}}/repositories"><strong>{{.NumRepos}}</strong> {{$.i18n.Tr "org.lower_repositories"}}</a>
  64. </p>
  65. </div>
  66. {{end}}
  67. </div>
  68. {{if .IsOrganizationOwner}}
  69. <div class="ui bottom attached segment">
  70. <a class="ui blue small button" href="{{.OrgLink}}/teams/new">{{.i18n.Tr "org.create_new_team"}}</a>
  71. </div>
  72. {{end}}
  73. {{end}}
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. {{template "base/footer" .}}
上海开阖软件有限公司 沪ICP备12045867号-1