patx/gitman

move search placement on issues and PRs

Commit f83dab4 · patx · 2026-05-10T15:21:32-04:00

Changeset
f83dab4d2ce31978baafc8c3fd82a9fbb186b412
Parents
374fb2cc0ba83c51bcaa67b9886dea2d07a71394

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/templates/issues.tpl b/templates/issues.tpl
index b8b61d8..48a5024 100644
--- a/templates/issues.tpl
+++ b/templates/issues.tpl
@@ -14,11 +14,6 @@
 
 <section class="panel">
   <div class="panel-heading">
-    <h2>Issues</h2>
-    <div class="filters">
-      <a class="{{'active' if status == 'open' else ''}}" href="{{current_url_with_params(status='open')}}">Open ({{counts["open"]}})</a>
-      <a class="{{'active' if status == 'closed' else ''}}" href="{{current_url_with_params(status='closed')}}">Closed ({{counts["closed"]}})</a>
-      <a class="{{'active' if status == 'all' else ''}}" href="{{current_url_with_params(status='all')}}">All</a>
       <form class="list-search" action="/{{repo['owner_username']}}/{{repo['name']}}/issues" method="get" role="search">
         <input type="hidden" name="status" value="{{status}}">
         <label class="sr-only" for="issue-search-input">Search issues</label>
@@ -28,6 +23,10 @@
           <a href="{{current_url_with_params(q=None)}}">Clear</a>
         % end
       </form>
+    <div class="filters">
+      <a class="{{'active' if status == 'open' else ''}}" href="{{current_url_with_params(status='open')}}">Open ({{counts["open"]}})</a>
+      <a class="{{'active' if status == 'closed' else ''}}" href="{{current_url_with_params(status='closed')}}">Closed ({{counts["closed"]}})</a>
+      <a class="{{'active' if status == 'all' else ''}}" href="{{current_url_with_params(status='all')}}">All</a>
       % if user:
         <a href="/{{repo['owner_username']}}/{{repo['name']}}/issues/new">New issue</a>
       % else:
diff --git a/templates/pull_requests.tpl b/templates/pull_requests.tpl
index f92461f..0dfd623 100644
--- a/templates/pull_requests.tpl
+++ b/templates/pull_requests.tpl
@@ -14,12 +14,6 @@
 
 <section class="panel">
   <div class="panel-heading">
-    <h2>Pull requests</h2>
-    <div class="filters">
-      <a class="{{'active' if status == 'open' else ''}}" href="{{current_url_with_params(status='open')}}">Open ({{counts["open"]}})</a>
-      <a class="{{'active' if status == 'merged' else ''}}" href="{{current_url_with_params(status='merged')}}">Merged ({{counts["merged"]}})</a>
-      <a class="{{'active' if status == 'closed' else ''}}" href="{{current_url_with_params(status='closed')}}">Closed ({{counts["closed"]}})</a>
-      <a class="{{'active' if status == 'all' else ''}}" href="{{current_url_with_params(status='all')}}">All</a>
       <form class="list-search" action="/{{repo['owner_username']}}/{{repo['name']}}/pulls" method="get" role="search">
         <input type="hidden" name="status" value="{{status}}">
         <label class="sr-only" for="pull-request-search-input">Search pull requests</label>
@@ -29,6 +23,11 @@
           <a href="{{current_url_with_params(q=None)}}">Clear</a>
         % end
       </form>
+    <div class="filters">
+      <a class="{{'active' if status == 'open' else ''}}" href="{{current_url_with_params(status='open')}}">Open ({{counts["open"]}})</a>
+      <a class="{{'active' if status == 'merged' else ''}}" href="{{current_url_with_params(status='merged')}}">Merged ({{counts["merged"]}})</a>
+      <a class="{{'active' if status == 'closed' else ''}}" href="{{current_url_with_params(status='closed')}}">Closed ({{counts["closed"]}})</a>
+      <a class="{{'active' if status == 'all' else ''}}" href="{{current_url_with_params(status='all')}}">All</a>
       % if user:
         <a href="/{{repo['owner_username']}}/{{repo['name']}}/pulls/new">New pull request</a>
       % else: