aboutsummaryrefslogtreecommitdiff
path: root/ui-shared.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2012-03-20 08:13:01 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2012-10-16 21:57:00 +0000
commit8a53f9dd6d86e7212c416df7d7c2c8598c1a6260 (patch)
tree761bd74a442cc61900a133d3426c3a21e6115ec1 /ui-shared.c
parentfdfb6a6d802d6b91061296eda9848d5819760d01 (diff)
downloadcgit-8a53f9dd6d86e7212c416df7d7c2c8598c1a6260.tar
cgit-8a53f9dd6d86e7212c416df7d7c2c8598c1a6260.tar.gz
cgit-8a53f9dd6d86e7212c416df7d7c2c8598c1a6260.zip
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.c7
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'>");