diff options
author | Lars Hjemli <hjemli@gmail.com> | 2012-03-20 12:13:01 +0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2012-10-17 01:57:00 +0400 |
commit | 8a53f9dd6d86e7212c416df7d7c2c8598c1a6260 (patch) | |
tree | 761bd74a442cc61900a133d3426c3a21e6115ec1 /ui-shared.c | |
parent | fdfb6a6d802d6b91061296eda9848d5819760d01 (diff) |
ui-tree.c: cleanup printing of blobs in tree viewlh/pretty-blob-view
Signed-off-by: Lars Hjemli <larsh@hjemli.net>
Diffstat (limited to 'ui-shared.c')
-rw-r--r-- | ui-shared.c | 7 |
1 files changed, 7 insertions, 0 deletions
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("<div class='path'>"); 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("</div>"); } html("<div class='content'>"); |