X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/b1f9b9c1459cb9a30ebf80721aff6ef788d1f891..0274b57d55a12ed38259757dbfae96b79cfa2e0b:/ui-tree.c?ds=inline
diff --git a/ui-tree.c b/ui-tree.c
index 7912784..051db7c 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -8,6 +8,7 @@
#include "cgit.h"
#include "html.h"
+#include "ui-shared.h"
char *curr_rev;
char *match_path;
@@ -34,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 | ||
| "); @@ -101,7 +106,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, html(" | "); cgit_log_link("log", NULL, "button", ctx.qry.head, curr_rev, - fullpath, 0, NULL, NULL); + fullpath, 0, NULL, NULL, ctx.qry.showmsg); html(" | |