X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/dabb34af760eff2a6ab8e14927fd173cafb77547..9c8be943f72b6f1bda5a31ce401899c3dd734e98:/ui-tree.c
diff --git a/ui-tree.c b/ui-tree.c
index c138877..79332fc 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;
@@ -33,9 +35,10 @@ static void print_object(const unsigned char *sha1, char *path)
return;
}
- html(" blob: %s",sha1_to_hex(sha1));
+ html(" (");
+ cgit_plain_link("plain", NULL, NULL, ctx.qry.head,
+ curr_rev, path);
+ htmlf(")
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(" |