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