summaryrefslogtreecommitdiff
path: root/cgithub/views/layout.eta
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-05-27 14:02:36 -0400
committerJoe Mou <dev@mou.fo>2026-05-27 23:38:34 -0400
commit745ac9d83234cb060bf802527efd90d301ecc491 (patch)
tree63ff86be00a976e5a45c8905e06b51b37f53eded /cgithub/views/layout.eta
parentc57123139794c3ef174b62c6bd2a54a60bbf3327 (diff)
Pull request index
Diffstat (limited to 'cgithub/views/layout.eta')
-rw-r--r--cgithub/views/layout.eta2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgithub/views/layout.eta b/cgithub/views/layout.eta
index f31c6e0..85f431c 100644
--- a/cgithub/views/layout.eta
+++ b/cgithub/views/layout.eta
@@ -14,6 +14,7 @@ git clone git@github.com:<%= it.repo.owner %>/<%= it.repo.name %>.git</code></pr
<nav>
<a href="/<%= it.repo.owner %>/<%= it.repo.name %>">Code</a>
<a href="/<%= it.repo.owner %>/<%= it.repo.name %>/issues">Issues</a>
+ <a href="/<%= it.repo.owner %>/<%= it.repo.name %>/pulls">Pull requests</a>
<a href="/<%= it.repo.owner %>/<%= it.repo.name %>/releases">Releases</a>
<% if (it.branch) { %>
<a href="/<%= it.repo.owner %>/<%= it.repo.name %>/commits/<%= it.branch %><%= it.path && it.path !== '/' ? '/' + it.path : '' %>">Commits</a>
@@ -23,6 +24,7 @@ git clone git@github.com:<%= it.repo.owner %>/<%= it.repo.name %>.git</code></pr
<input type="text" name="q" placeholder="Search…" value="<%= it.q ?? "" %>">
<select name="type">
<option value="issues" <%= it.searchType === "issues" ? "selected" : "" %>>Issues</option>
+ <option value="pullrequests" <%= it.searchType === "pullrequests" ? "selected" : "" %>>Pull requests</option>
<option value="code" <%= it.searchType === "code" || it.searchType == null ? "selected" : "" %>>Code</option>
</select>
<button type="submit">Search</button>