ui-tree: add link to plain view for blobs in tree listing
authorLars Hjemli <hjemli@gmail.com>
Sun, 28 Feb 2010 21:18:00 +0000 (22:18 +0100)
committerLars Hjemli <hjemli@gmail.com>
Sun, 28 Feb 2010 21:18:00 +0000 (22:18 +0100)
Suggested-by: Robert Weidlich <mail@robertweidlich.de>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
ui-tree.c

index 94aff8f5d176df3aa544bb63e4146c19f66a0447..0ee38f289a5a21e5385cd1289aa234c33bab30d6 100644 (file)
--- 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);
        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("</td></tr>\n");
        free(name);
        return 0;
        html("</td></tr>\n");
        free(name);
        return 0;