Fork to maintain patches against the official gitea for https://code.ceondo.com https://github.com/go-gitea/gitea

home.tmpl 3.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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.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>
  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. {{template "base/paginate" .}}
  33. </div>
  34. <div class="ui five wide column">
  35. <h4 class="ui top attached header">
  36. <strong>{{.i18n.Tr "org.people"}}</strong>
  37. {{if .IsOrganizationMember}}
  38. <div class="ui right">
  39. <a class="text grey" href="{{.OrgLink}}/members">{{.Org.NumMembers}} <span class="octicon octicon-chevron-right"></span></a>
  40. </div>
  41. {{end}}
  42. </h4>
  43. <div class="ui attached segment members">
  44. {{$isMember := .IsOrganizationMember}}
  45. {{range .Members}}
  46. {{if or $isMember (.IsPublicMember $.Org.ID)}}
  47. <a href="{{.HomeLink}}" title="{{.Name}}{{if .FullName}} ({{.FullName}}){{end}}"><img class="ui avatar" src="{{.RelAvatarLink}}"></a>
  48. {{end}}
  49. {{end}}
  50. </div>
  51. {{if .IsOrganizationMember}}
  52. <div class="ui top attached header">
  53. <strong>{{.i18n.Tr "org.teams"}}</strong>
  54. <div class="ui right">
  55. <a class="text grey" href="{{.OrgLink}}/teams"><span>{{.Org.NumTeams}}</span> <span class="octicon octicon-chevron-right"></span></a>
  56. </div>
  57. </div>
  58. <div class="ui attached table segment teams">
  59. {{range .Teams}}
  60. <div class="item">
  61. <a href="{{$.OrgLink}}/teams/{{.LowerName}}"><strong class="team-name">{{.Name}}</strong></a>
  62. <p class="text grey">
  63. <a href="{{$.OrgLink}}/teams/{{.LowerName}}"><strong>{{.NumMembers}}</strong> {{$.i18n.Tr "org.lower_members"}}</a> ·
  64. <a href="{{$.OrgLink}}/teams/{{.LowerName}}/repositories"><strong>{{.NumRepos}}</strong> {{$.i18n.Tr "org.lower_repositories"}}</a>
  65. </p>
  66. </div>
  67. {{end}}
  68. </div>
  69. {{if .IsOrganizationOwner}}
  70. <div class="ui bottom attached segment">
  71. <a class="ui blue small button" href="{{.OrgLink}}/teams/new">{{.i18n.Tr "org.create_new_team"}}</a>
  72. </div>
  73. {{end}}
  74. {{end}}
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. {{template "base/footer" .}}