]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-repolist.c
ui-refs.c: Refactor print_tag()
[ps-cgit] / ui-repolist.c
index 66c88c4b639b68b95001d57cec234e83a41d0af0..76fe71a9a4bfca98c8340deba3b8ee68cb69b9c3 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include "cgit.h"
+#include "ui-repolist.h"
 #include "html.h"
 #include "ui-shared.h"
 #include <strings.h>
@@ -128,13 +129,15 @@ static void print_pager(int items, int pagelen, char *search, char *sort)
 {
        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;
+               html("<li>");
                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)