diff options
Diffstat (limited to 'ui-repolist.c')
-rw-r--r-- | ui-repolist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index f21d28d..d946f32 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -119,13 +119,13 @@ void print_header(int columns) | |||
119 | } | 119 | } |
120 | 120 | ||
121 | 121 | ||
122 | void print_pager(int items, int pagelen, char *search) | 122 | void print_pager(int items, int pagelen, char *search, char *sort) |
123 | { | 123 | { |
124 | int i; | 124 | int i; |
125 | html("<div class='pager'>"); | 125 | html("<div class='pager'>"); |
126 | for(i = 0; i * pagelen < items; i++) | 126 | for(i = 0; i * pagelen < items; i++) |
127 | cgit_index_link(fmt("[%d]", i+1), fmt("Page %d", i+1), NULL, | 127 | cgit_index_link(fmt("[%d]", i+1), fmt("Page %d", i+1), NULL, |
128 | search, i * pagelen); | 128 | search, sort, i * pagelen); |
129 | html("</div>"); | 129 | html("</div>"); |
130 | } | 130 | } |
131 | 131 | ||
@@ -292,7 +292,7 @@ void cgit_print_repolist() | |||
292 | if (!hits) | 292 | if (!hits) |
293 | cgit_print_error("No repositories found"); | 293 | cgit_print_error("No repositories found"); |
294 | else if (hits > ctx.cfg.max_repo_count) | 294 | else if (hits > ctx.cfg.max_repo_count) |
295 | print_pager(hits, ctx.cfg.max_repo_count, ctx.qry.search); | 295 | print_pager(hits, ctx.cfg.max_repo_count, ctx.qry.search, ctx.qry.sort); |
296 | cgit_print_docend(); | 296 | cgit_print_docend(); |
297 | } | 297 | } |
298 | 298 | ||