X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/b1e172acca870e7999f2d2d917db7b4c42aa05b3..bdae1d8a8d39206ac75ab86f8e9ef53b2f29432e:/ui-repolist.c diff --git a/ui-repolist.c b/ui-repolist.c index 2a910bd..1ae22aa 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -129,10 +129,10 @@ void print_pager(int items, int pagelen, char *search, char *sort) int i, ofs; char *class = NULL; html("
"); - for(i = 0, ofs = 0; ofs < items; i++, ofs = i * pagelen) { + for (i = 0, ofs = 0; ofs < items; i++, ofs = i * pagelen) { class = (ctx.qry.ofs == ofs) ? "current" : NULL; - cgit_index_link(fmt("[%d]", i+1), fmt("Page %d", i+1), class, - search, sort, ofs); + cgit_index_link(fmt("[%d]", i + 1), fmt("Page %d", i + 1), + class, search, sort, ofs); } html("
"); } @@ -258,13 +258,13 @@ void cgit_print_repolist() if (ctx.cfg.index_header) html_include(ctx.cfg.index_header); - if(ctx.qry.sort) + if (ctx.qry.sort) sorted = sort_repolist(ctx.qry.sort); else if (ctx.cfg.section_sort) sort_repolist("section"); html(""); - for (i=0; i