HTML · 1328 bytes Raw Blame History
1 {{ define "page" -}}
2 <section class="shithub-org-profile">
3 <header class="shithub-org-profile-head">
4 <h1>{{ .Org.DisplayName }}</h1>
5 <p class="shithub-meta">@{{ .Org.Slug }}</p>
6 {{ if .Org.Description }}<p>{{ .Org.Description }}</p>{{ end }}
7 <nav class="shithub-org-tabs">
8 <a href="/{{ .Org.Slug }}/people">People ({{ .MemberCount }})</a>
9 <a href="/{{ .Org.Slug }}/teams">Teams</a>
10 {{ if .IsOwner }}<a href="/{{ .Org.Slug }}/settings/profile">Settings</a>{{ end }}
11 </nav>
12 </header>
13 {{ if .Org.SuspendedAt.Valid }}
14 <p class="shithub-flash shithub-flash-error">This organization is suspended. Pushes are blocked; reads continue.</p>
15 {{ end }}
16 <section class="shithub-org-repos">
17 <h2>Repositories</h2>
18 {{ if .Repos }}
19 <ul class="shithub-search-list">
20 {{ range .Repos }}
21 <li>
22 <a href="/{{ $.Org.Slug }}/{{ .Name }}"><strong>{{ $.Org.Slug }}/{{ .Name }}</strong></a>
23 {{ if eq (printf "%s" .Visibility) "private" }}<span class="shithub-pill shithub-pill-private">private</span>{{ end }}
24 {{ if .Description }}<p class="shithub-meta">{{ .Description }}</p>{{ end }}
25 </li>
26 {{ end }}
27 </ul>
28 {{ else }}
29 <p class="shithub-empty">No repositories yet.</p>
30 {{ end }}
31 </section>
32 </section>
33 {{- end }}