| 1 | {{ define "page" -}} |
| 2 | <div class="shithub-quick-dropdown" role="listbox"> |
| 3 | {{ if .Repos }} |
| 4 | <div class="shithub-quick-section"> |
| 5 | <h3>Repositories</h3> |
| 6 | <ul> |
| 7 | {{ range .Repos }} |
| 8 | <li> |
| 9 | <a href="/{{ .OwnerUsername }}/{{ .Name }}">{{ .OwnerUsername }}/{{ .Name }}</a> |
| 10 | {{ if eq .Visibility "private" }}<span class="shithub-pill shithub-pill-private">private</span>{{ end }} |
| 11 | </li> |
| 12 | {{ end }} |
| 13 | </ul> |
| 14 | </div> |
| 15 | {{ end }} |
| 16 | {{ if .Issues }} |
| 17 | <div class="shithub-quick-section"> |
| 18 | <h3>Issues</h3> |
| 19 | <ul> |
| 20 | {{ range .Issues }} |
| 21 | <li><a href="/{{ .OwnerUsername }}/{{ .RepoName }}/issues/{{ .Number }}">{{ .OwnerUsername }}/{{ .RepoName }}#{{ .Number }} — {{ .Title }}</a></li> |
| 22 | {{ end }} |
| 23 | </ul> |
| 24 | </div> |
| 25 | {{ end }} |
| 26 | {{ if .Users }} |
| 27 | <div class="shithub-quick-section"> |
| 28 | <h3>Users</h3> |
| 29 | <ul> |
| 30 | {{ range .Users }} |
| 31 | <li><a href="/{{ .Username }}">@{{ .Username }} — {{ .DisplayName }}</a></li> |
| 32 | {{ end }} |
| 33 | </ul> |
| 34 | </div> |
| 35 | {{ end }} |
| 36 | <div class="shithub-quick-footer"> |
| 37 | <a href="/search?q={{ .Query }}">See all results →</a> |
| 38 | </div> |
| 39 | </div> |
| 40 | {{- end }} |