X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/fa4dfee5489d8c829da92637dd84e8650439f313..837d464af77d76a2661d92e05167657cbf430d80:/ui-tree.c
diff --git a/ui-tree.c b/ui-tree.c
index 2f052c7..e27e796 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -35,10 +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 | ||
| "); @@ -104,6 +107,9 @@ 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); + if (ctx.repo->max_stats) + cgit_stats_link("stats", NULL, "button", ctx.qry.head, + fullpath); html(" | |