mirror of
https://git.zx2c4.com/cgit
synced 2024-11-25 18:08:41 +00:00
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>
This commit is contained in:
parent
c151ce61d8
commit
ff3a3b4e2b
@ -175,6 +175,8 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
|
|||||||
if (ctx.repo->max_stats)
|
if (ctx.repo->max_stats)
|
||||||
cgit_stats_link("stats", NULL, "button", ctx.qry.head,
|
cgit_stats_link("stats", NULL, "button", ctx.qry.head,
|
||||||
fullpath);
|
fullpath);
|
||||||
|
cgit_plain_link("plain", NULL, "button", ctx.qry.head, curr_rev,
|
||||||
|
fullpath);
|
||||||
html("</td></tr>\n");
|
html("</td></tr>\n");
|
||||||
free(name);
|
free(name);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user