summaryrefslogtreecommitdiffabout
path: root/ui-log.c
Side-by-side diff
Diffstat (limited to 'ui-log.c') (more/less context) (show whitespace changes)
-rw-r--r--ui-log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui-log.c b/ui-log.c
index 75bbbe4..bb17e1d 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -53,9 +53,9 @@ void print_commit(struct commit *commit)
cgit_free_commitinfo(info);
}
-void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path)
+void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path, int pager)
{
struct rev_info rev;
struct commit *commit;
const char *argv[] = {NULL, tip, NULL, NULL, NULL};
@@ -109,8 +109,9 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path)
commit->parents = NULL;
}
html("</table>\n");
+ if (pager) {
html("<div class='pager'>");
if (ofs > 0) {
html("&nbsp;<a href='");
html(cgit_pageurl(cgit_query_repo, cgit_query_page,
@@ -125,4 +126,5 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path)
html("'>[next]</a>&nbsp;");
}
html("</div>");
}
+}