diff options
| author | 2010-03-01 06:18:00 (JST) | |
|---|---|---|
| committer | 2010-03-01 06:18:00 (JST) | |
| commit | ff3a3b4e2b7463bb8cb370bdda393e8b3526fcb9 (patch) | |
| tree | 56a3033b87891fabd2396307fd61faa28bb8fbfa | |
| parent | c151ce61d87c577ac8a067523a406938c557d650 (diff) | |
| download | cgit-ff3a3b4e2b7463bb8cb370bdda393e8b3526fcb9.zip cgit-ff3a3b4e2b7463bb8cb370bdda393e8b3526fcb9.tar.gz | |
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>
| -rw-r--r-- | ui-tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -175,6 +175,8 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, | |||
| 175 | if (ctx.repo->max_stats) | 175 | if (ctx.repo->max_stats) |
| 176 | cgit_stats_link("stats", NULL, "button", ctx.qry.head, | 176 | cgit_stats_link("stats", NULL, "button", ctx.qry.head, |
| 177 | fullpath); | 177 | fullpath); |
| 178 | cgit_plain_link("plain", NULL, "button", ctx.qry.head, curr_rev, | ||
| 179 | fullpath); | ||
| 178 | html("</td></tr>\n"); | 180 | html("</td></tr>\n"); |
| 179 | free(name); | 181 | free(name); |
| 180 | return 0; | 182 | return 0; |
