X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/2915483ef6c9c29ac1493e6945688bb62f7825b4..502865a5ec40fed5f1f865cb34002aecaab8405e:/ui-tree.c diff --git a/ui-tree.c b/ui-tree.c index c138877..5a2dd3f 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -7,6 +7,8 @@ */ #include "cgit.h" +#include "html.h" +#include "ui-shared.h" char *curr_rev; char *match_path; @@ -34,7 +36,8 @@ static void print_object(const unsigned char *sha1, char *path) } html(" blob: %s",sha1_to_hex(sha1)); html("
| Bad object: %s %s | |||
| Bad object: %s %s | |||
| "); - html_filemode(mode); + cgit_print_filemode(mode); html(" | "); if (S_ISGITLINK(mode)) { htmlf(""); html_txt(name); html(""); } else if (S_ISDIR(mode)) { - cgit_tree_link(name, NULL, "ls-dir", cgit_query_head, + cgit_tree_link(name, NULL, "ls-dir", ctx.qry.head, curr_rev, fullpath); } else { - cgit_tree_link(name, NULL, "ls-blob", cgit_query_head, + cgit_tree_link(name, NULL, "ls-blob", ctx.qry.head, curr_rev, fullpath); } htmlf(" | %li | ", size); html(""); - cgit_log_link("log", NULL, "button", cgit_query_head, curr_rev, + cgit_log_link("log", NULL, "button", ctx.qry.head, curr_rev, fullpath, 0, NULL, NULL); html(" |