History

ui-tree: add link to plain view for blobs in tree listing

Lars Hjemli committed 16 years ago

Commit ff3a3b41 parent c151ce61 file · +2 −0Browse files

Unified · Split

ui-tree.c+2−0
@@ -175,6 +175,8 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, · 174 unmodified lines
175175 if (ctx.repo->max_stats)
176176 cgit_stats_link("stats", NULL, "button", ctx.qry.head,
177177 fullpath);
178+ cgit_plain_link("plain", NULL, "button", ctx.qry.head, curr_rev,
179+ fullpath);
178180 html("</td></tr>\n");
179181 free(name);
180182 return 0;