internal/web/templates/explore.html

4a511e42574ead9c92dc73fd320f296cc4dbea07
gitbay/internal/web/templates/explore.html

24 lines · 1165 bytes

 1{{define "width"}}wide{{end}}
 2{{define "title"}}explore · {{.Site}}{{end}}
 3{{define "content"}}
 4<div class="withcol" id="explore-root">
 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{{if .Viewer}}<a class="button" href="/new">New repository</a>{{end}}
15</div>
16<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>
17<ul class="repolist rows">
18{{range .Repos}}{{template "reporow" .}}
19{{else}}<li class="empty">{{if .Query}}nothing matches that filter{{else}}no public repositories yet{{end}}</li>{{end}}
20</ul>
21{{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}}
22</div>
23</div>
24{{end}}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form