From 8a53f9dd6d86e7212c416df7d7c2c8598c1a6260 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Tue, 20 Mar 2012 08:13:01 +0000 Subject: ui-tree.c: cleanup printing of blobs in tree view Signed-off-by: Lars Hjemli --- ui-shared.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ui-shared.c') diff --git a/ui-shared.c b/ui-shared.c index 43166af..d2ffc5b 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -939,6 +939,13 @@ void cgit_print_pageheader(struct cgit_context *ctx) html("
"); html("path: "); cgit_print_path_crumbs(ctx, ctx->qry.vpath); + if (!strcmp(ctx->qry.page, "tree")) { + html(" ("); + cgit_plain_link("plain", NULL, NULL, ctx->qry.head, + ctx->qry.has_sha1 ? ctx->qry.sha1 : NULL, + ctx->qry.vpath); + html(")"); + } html("
"); } html("
"); -- cgit v1.2.3-24-g4f1b