| -rw-r--r-- | cgit.css | 4 | ||||
| -rw-r--r-- | ui-repolist.c | 11 |
2 files changed, 4 insertions, 11 deletions
@@ -548,10 +548,6 @@ div#cgit div.pager a { margin: 0em 0.5em; } -div#cgit div.pager .current { - font-weight: bold; -} - div#cgit span.age-mins { font-weight: bold; color: #080; diff --git a/ui-repolist.c b/ui-repolist.c index 46cbacf..943eaab 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -123,14 +123,11 @@ void print_header(int columns) void print_pager(int items, int pagelen, char *search, char *sort) { - int i, ofs; - char *class = NULL; + int i; html("<div class='pager'>"); - 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); - } + for(i = 0; i * pagelen < items; i++) + cgit_index_link(fmt("[%d]", i+1), fmt("Page %d", i+1), NULL, + search, sort, i * pagelen); html("</div>"); } |