neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit ff3a3b4e2b7463bb8cb370bdda393e8b3526fcb9
parent c151ce61d87c577ac8a067523a406938c557d650
Author: Lars Hjemli <hjemli@gmail.com>
Date:   Sun, 28 Feb 2010 22:18:00 +0100

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:
Mui-tree.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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;