internal/web/templates/explore.html

e6cd75b5f28bacf51620bb531320c30fd4e66bfd
gitbay/internal/web/templates/explore.html history · blame · raw

23 lines · 1077 bytes

 1{{define "width"}}wide{{end}}
 2{{define "title"}}explore · {{.Site}}{{end}}
 3{{define "content"}}
 4<div class="withcol">
 5{{template "sidecol" .Facets}}
 6<div class="colmain">
 7<div class="headrow">
 8<h1>Explore</h1>
 9<form method="get" action="/explore" class="searchform compact">
10  <input type="search" name="q" aria-label="Filter repositories" value="{{.Query}}" placeholder="filter by name, description, topic">
11  <button type="submit" class="btn">Search</button>
12</form>
13<span class="spacer"></span>
14</div>
15<p class="meta">{{.Total}} repositor{{if eq .Total 1}}y{{else}}ies{{end}}{{if .Query}} matching <strong>{{.Query}}</strong>, <a href="/explore">clear filter</a>{{end}}</p>
16<ul class="repolist rows">
17{{range .Repos}}{{template "reporow" .}}
18{{else}}<li class="empty">{{if .Query}}nothing matches that filter{{else}}no public repositories yet{{end}}</li>{{end}}
19</ul>
20{{if gt .Pages 1}}<p class="pager">page {{.Page}} of {{.Pages}}{{with .Prev}} · <a href="{{.}}">← newer</a>{{end}}{{with .Next}} · <a href="{{.}}">older →</a>{{end}}</p>{{end}}
21</div>
22</div>
23{{end}}