History

ui-repolist: use ctx.qry.url instead of rooturl, in case we're filtering

Jason A. Donenfeld committed 11 years ago

Commit c3473e81 parent e14eee92 files · +3 −3Browse files

Unified · Split

2 files
  1. ui-repolist.c +2 −2
  2. ui-shared.c +1 −1
ui-repolist.c+2−2
@@ -108,7 +108,7 @@ static int is_in_url(struct cgit_repo *repo) · 107 unmodified lines
108static void print_sort_header(const char *title, const char *sort)108static void print_sort_header(const char *title, const char *sort)
109{109{
110 html("<th class='left'><a href='");110 html("<th class='left'><a href='");
111 html_attr(cgit_rooturl());111 html_attr(ctx.qry.url);
112 htmlf("?s=%s", sort);112 htmlf("?s=%s", sort);
113 if (ctx.qry.search) {113 if (ctx.qry.search) {
114 html("&amp;q=");114 html("&amp;q=");
@@ -315,7 +315,7 @@ void cgit_print_repolist() · 200 unmodified lines
315 cgit_close_filter(ctx.repo->owner_filter);315 cgit_close_filter(ctx.repo->owner_filter);
316 } else {316 } else {
317 html("<a href='");317 html("<a href='");
318 html_attr(cgit_rooturl());318 html_attr(ctx.qry.url);
319 html("?q=");319 html("?q=");
320 html_url_arg(ctx.repo->owner);320 html_url_arg(ctx.repo->owner);
321 html("'>");321 html("'>");
ui-shared.c+1−1
@@ -952,7 +952,7 @@ void cgit_print_pageheader(void) · 951 unmodified lines
952 NULL, NULL, 0);952 NULL, NULL, 0);
953 html("</td><td class='form'>");953 html("</td><td class='form'>");
954 html("<form method='get' action='");954 html("<form method='get' action='");
955 html_attr(cgit_rooturl());955 html_attr(ctx.qry.url);
956 html("'>\n");956 html("'>\n");
957 html("<input type='text' name='q' size='10' value='");957 html("<input type='text' name='q' size='10' value='");
958 html_attr(ctx.qry.search);958 html_attr(ctx.qry.search);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t