X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/9a8f88658d51aeb86a79ac1121de13562ad2601f..9d8d9b61238df3a855504825e5f735d00289f12b:/ui-log.c diff --git a/ui-log.c b/ui-log.c index c52af79..f3b16e7 100644 --- a/ui-log.c +++ b/ui-log.c @@ -23,15 +23,12 @@ void print_commit(struct commit *commit) char *qry = fmt("id=%s", sha1_to_hex(commit->object.sha1)); char *url = cgit_pageurl(cgit_query_repo, "commit", qry); html_link_open(url, NULL, NULL); - html_txt(info->subject); + html_ntxt(80, info->subject); html_link_close(); html(""); html_txt(info->author); html("\n"); - free(info->author); - free(info->committer); - free(info->subject); - free(info); + cgit_free_commitinfo(info); } @@ -51,8 +48,10 @@ void cgit_print_log(const char *tip, int ofs, int cnt) prepare_revision_walk(&rev); html("

Log

"); - html(""); - html("\n"); + html("
DateMessageAuthor
"); + html("" + "" + "\n"); if (ofs<0) ofs = 0;
DateMessageAuthor