-rw-r--r-- | ui-log.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(" <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> "); } html("</div>"); } +} |