aboutsummaryrefslogtreecommitdiffstats
path: root/ui-tree.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2010-02-28 22:18:00 +0100
committerLars Hjemli <hjemli@gmail.com>2010-02-28 22:18:00 +0100
commitff3a3b4e2b7463bb8cb370bdda393e8b3526fcb9 (patch)
tree56a3033b87891fabd2396307fd61faa28bb8fbfa /ui-tree.c
parentc151ce61d87c577ac8a067523a406938c557d650 (diff)
downloadcgit-ff3a3b4e2b7463bb8cb370bdda393e8b3526fcb9.tar.gz
cgit-ff3a3b4e2b7463bb8cb370bdda393e8b3526fcb9.tar.xz
ui-tree: add link to plain view for blobs in tree listing
Suggested-by: Robert Weidlich <mail@robertweidlich.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-tree.c')
-rw-r--r--ui-tree.c2
1 files changed, 2 insertions, 0 deletions
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("</td></tr>\n");
free(name);
return 0;