X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/f91b9696a36008c245a3195800ba0c5fa3e890f9..ff13396926f3352d9e29c0663154918297dc5af7:/ui-tree.c diff --git a/ui-tree.c b/ui-tree.c index db0bef6..1cb09f7 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -32,6 +32,10 @@ static void print_object(const unsigned char *sha1, char *path) return; } + html(" blob: %s",sha1_to_hex(sha1)); + html("
| %d | ", + htmlf(" | ||
| %1$d | ", ++lineno); html_txt(buf + start); html(" | ||
| Bad object: %s %s | |||
| "); + + html(" | |||
| "); html_filemode(mode); - html(" | "); + html_txt(name); + html(""); } else if (S_ISDIR(mode)) { - html("class='ls-dir'>%s | ", name); - htmlf("%li | ", size); - - html("H | "); - html("%li | ", size); + + html(""); + cgit_log_link("log", NULL, "button", cgit_query_head, curr_rev, + fullpath, 0); + html(" | \n"); free(name); return 0; } @@ -150,11 +152,9 @@ static int walk_tree(const unsigned char *sha1, const char *base, int baselen, strcpy(buffer+baselen, pathname); url = cgit_pageurl(cgit_query_repo, "tree", fmt("h=%s&path=%s", curr_rev, buffer)); - htmlf(" / "); - html_txt(xstrdup(pathname)); - html(""); + html("/"); + cgit_tree_link(xstrdup(pathname), NULL, NULL, cgit_query_head, + curr_rev, buffer); if (strcmp(match_path, buffer)) return READ_TREE_RECURSIVE;