X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/b7f33786ef4b155a11b0324f84bbde5d7fc9c998..0274b57d55a12ed38259757dbfae96b79cfa2e0b:/ui-log.c diff --git a/ui-log.c b/ui-log.c index 8dd8b89..631e46d 100644 --- a/ui-log.c +++ b/ui-log.c @@ -44,8 +44,12 @@ void print_commit(struct commit *commit) cgit_print_age(commit->date, TM_WEEK * 2, FMT_SHORTDATE); html_link_close(); html(""); + if (ctx.qry.showmsg) + html(""); cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, sha1_to_hex(commit->object.sha1)); + if (ctx.qry.showmsg) + html(""); html(""); html_txt(info->author); if (ctx.repo->enable_log_filecount) { @@ -61,6 +65,17 @@ void print_commit(struct commit *commit) } } html("\n"); + if (ctx.qry.showmsg) { + html("
"); + html_txt(info->msg); + html("

"); + if (ctx.repo->enable_log_filecount) { + html(""); + if (ctx.repo->enable_log_linecount) + html(""); + } + html("\n"); + } cgit_free_commitinfo(info); } @@ -100,8 +115,15 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern html(""); html("" - "" - ""); + ""); if (ctx.repo->enable_log_filecount) { html(""); columns++; @@ -136,20 +158,20 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern cgit_log_link("[prev]", NULL, NULL, ctx.qry.head, ctx.qry.sha1, ctx.qry.path, ofs - cnt, ctx.qry.grep, - ctx.qry.search); + ctx.qry.search, ctx.qry.showmsg); html(" "); } if ((commit = get_revision(&rev)) != NULL) { cgit_log_link("[next]", NULL, NULL, ctx.qry.head, ctx.qry.sha1, ctx.qry.path, ofs + cnt, ctx.qry.grep, - ctx.qry.search); + ctx.qry.search, ctx.qry.showmsg); } html(""); } else if ((commit = get_revision(&rev)) != NULL) { html("\n"); } }
AgeCommit messageAuthorCommit message"); + if (pager) { + html(" ("); + cgit_log_link("toggle", NULL, NULL, ctx.qry.head, ctx.qry.sha1, + ctx.qry.path, ctx.qry.ofs, ctx.qry.grep, + ctx.qry.search, ctx.qry.showmsg ? 0 : 1); + html(")"); + } + html("AuthorFiles
"); cgit_log_link("[...]", NULL, NULL, ctx.qry.head, NULL, NULL, 0, - NULL, NULL); + NULL, NULL, ctx.qry.showmsg); html("