X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/f91b9696a36008c245a3195800ba0c5fa3e890f9..eb45342e735818b3c68cbab9b61b23e79ae74418:/ui-tree.c?ds=inline diff --git a/ui-tree.c b/ui-tree.c index db0bef6..75ce449 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("
| Bad object: %s %s | ||||
| "); + + html(" | ||||
| "); html_filemode(mode); - html(" | "); if (S_ISDIRLNK(mode)) { - htmlf("class='ls-mod'>"); + 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;