From: Lars Hjemli Date: Sun, 28 Feb 2010 21:18:00 +0000 (+0100) Subject: ui-tree: add link to plain view for blobs in tree listing X-Git-Tag: v0.9~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff3a3b4e2b7463bb8cb370bdda393e8b3526fcb9;p=cgit ui-tree: add link to plain view for blobs in tree listing Suggested-by: Robert Weidlich Signed-off-by: Lars Hjemli --- diff --git a/ui-tree.c b/ui-tree.c index 94aff8f..0ee38f2 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -175,6 +175,8 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, if (ctx.repo->max_stats) cgit_stats_link("stats", NULL, "button", ctx.qry.head, fullpath); + cgit_plain_link("plain", NULL, "button", ctx.qry.head, curr_rev, + fullpath); html("\n"); free(name); return 0;