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 e138f59..4b21e2f 100644 --- a/ui-repolist.c +++ b/ui-repolist.c | |||
@@ -109,13 +109,13 @@ void print_header(int columns) | |||
109 | } | 109 | } |
110 | 110 | ||
111 | 111 | ||
112 | void print_pager(int items, int pagelen, char *search) | 112 | void print_pager(int items, int pagelen, char *search, char *sort) |
113 | { | 113 | { |
114 | int i; | 114 | int i; |
115 | html("<div class='pager'>"); | 115 | html("<div class='pager'>"); |
116 | for(i = 0; i * pagelen < items; i++) | 116 | for(i = 0; i * pagelen < items; i++) |
117 | cgit_index_link(fmt("[%d]", i+1), fmt("Page %d", i+1), NULL, | 117 | cgit_index_link(fmt("[%d]", i+1), fmt("Page %d", i+1), NULL, |
118 | search, i * pagelen); | 118 | search, sort, i * pagelen); |
119 | html("</div>"); | 119 | html("</div>"); |
120 | } | 120 | } |
121 | 121 | ||
@@ -282,7 +282,7 @@ void cgit_print_repolist() | |||
282 | if (!hits) | 282 | if (!hits) |
283 | cgit_print_error("No repositories found"); | 283 | cgit_print_error("No repositories found"); |
284 | else if (hits > ctx.cfg.max_repo_count) | 284 | else if (hits > ctx.cfg.max_repo_count) |
285 | print_pager(hits, ctx.cfg.max_repo_count, ctx.qry.search); | 285 | print_pager(hits, ctx.cfg.max_repo_count, ctx.qry.search, ctx.qry.sort); |
286 | cgit_print_docend(); | 286 | cgit_print_docend(); |
287 | } | 287 | } |
288 | 288 | ||