X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/2915483ef6c9c29ac1493e6945688bb62f7825b4..5b27248301db4b246bcd9977c6c3d2d4497b9ecb:/ui-tree.c?ds=inline
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(" |