aboutsummaryrefslogtreecommitdiff
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
-rw-r--r--cgit.css14
-rw-r--r--ui-log.c9
-rw-r--r--ui-repolist.c6
3 files changed, 9 insertions, 20 deletions
diff --git a/cgit.css b/cgit.css
index a50d62b..54da076 100644
--- a/cgit.css
+++ b/cgit.css
@@ -538,23 +538,17 @@ div#cgit table.list td.sublevel-repo {
padding-left: 1.5em;
}
-div#cgit ul.pager {
- list-style-type: none;
+div#cgit div.pager {
text-align: center;
margin: 1em 0em 0em 0em;
- padding: 0;
}
-div#cgit ul.pager li {
- display: inline-block;
- margin: 0.25em 0.5em;
-}
-
-div#cgit ul.pager a {
+div#cgit div.pager a {
color: #777;
+ margin: 0em 0.5em;
}
-div#cgit ul.pager .current {
+div#cgit div.pager .current {
font-weight: bold;
}
diff --git a/ui-log.c b/ui-log.c
index aaffb4e..954d3e1 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -405,24 +405,21 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
commit->parents = NULL;
}
if (pager) {
- html("</table><ul class='pager'>");
+ html("</table><div class='pager'>");
if (ofs > 0) {
- html("<li>");
cgit_log_link("[prev]", NULL, NULL, ctx.qry.head,
ctx.qry.sha1, ctx.qry.vpath,
ofs - cnt, ctx.qry.grep,
ctx.qry.search, ctx.qry.showmsg);
- html("</li>");
+ html("&nbsp;");
}
if ((commit = get_revision(&rev)) != NULL) {
- html("<li>");
cgit_log_link("[next]", NULL, NULL, ctx.qry.head,
ctx.qry.sha1, ctx.qry.vpath,
ofs + cnt, ctx.qry.grep,
ctx.qry.search, ctx.qry.showmsg);
- html("</li>");
}
- html("</ul>");
+ html("</div>");
} else if ((commit = get_revision(&rev)) != NULL) {
htmlf("<tr class='nohover'><td colspan='%d'>", columns);
cgit_log_link("[...]", NULL, NULL, ctx.qry.head, NULL,
diff --git a/ui-repolist.c b/ui-repolist.c
index a9751f6..66c88c4 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -128,15 +128,13 @@ static void print_pager(int items, int pagelen, char *search, char *sort)
{
int i, ofs;
char *class = NULL;
- html("<ul class='pager'>");
+ html("<div 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("</ul>");
+ html("</div>");
}
static int cmp(const char *s1, const char *s2)