]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-repolist.c
Convert pager navigation into a unordered list
[ps-cgit] / ui-repolist.c
index 66c88c4b639b68b95001d57cec234e83a41d0af0..a9751f6ff0af6cc4fc18eedb302c306673b6c07e 100644 (file)
@@ -128,13 +128,15 @@ static void print_pager(int items, int pagelen, char *search, char *sort)
 {
        int i, ofs;
        char *class = NULL;
 {
        int i, ofs;
        char *class = NULL;
-       html("<div class='pager'>");
+       html("<ul class='pager'>");
        for (i = 0, ofs = 0; ofs < items; i++, ofs = i * pagelen) {
                class = (ctx.qry.ofs == ofs) ? "current" : NULL;
        for (i = 0, ofs = 0; ofs < items; i++, ofs = i * pagelen) {
                class = (ctx.qry.ofs == ofs) ? "current" : NULL;
+               html("<li>");
                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("</li>");
        }
        }
-       html("</div>");
+       html("</ul>");
 }
 
 static int cmp(const char *s1, const char *s2)
 }
 
 static int cmp(const char *s1, const char *s2)