X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/1a63cfcc3d83919e790e7e279eb35fc75adb0e3c..c83db796a1cf6893de275e78b98cef10eccc1200:/ui-log.c diff --git a/ui-log.c b/ui-log.c index 75bbbe4..bb17e1d 100644 --- a/ui-log.c +++ b/ui-log.c @@ -54,7 +54,7 @@ void print_commit(struct commit *commit) } -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; @@ -110,19 +110,21 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path) } html("\n"); - html("
"); - if (ofs > 0) { - html(" [prev] "); - } - - if ((commit = get_revision(&rev)) != NULL) { - html(" [next] "); + if (pager) { + html("
"); + if (ofs > 0) { + html(" [prev] "); + } + + if ((commit = get_revision(&rev)) != NULL) { + html(" [next] "); + } + html("
"); } - html("
"); }