diff options
Diffstat (limited to 'ui-tree.c')
-rw-r--r-- | ui-tree.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ui-tree.c b/ui-tree.c index 438b001..34e7e63 100644 --- a/ui-tree.c +++ b/ui-tree.c | |||
@@ -263,15 +263,21 @@ static int ls_item(const struct object_id *oid, struct strbuf *base, | |||
263 | cgit_log_link("log", NULL, "button", ctx.qry.head, | 263 | cgit_log_link("log", NULL, "button", ctx.qry.head, |
264 | walk_tree_ctx->curr_rev, fullpath.buf, 0, NULL, NULL, | 264 | walk_tree_ctx->curr_rev, fullpath.buf, 0, NULL, NULL, |
265 | ctx.qry.showmsg, 0); | 265 | ctx.qry.showmsg, 0); |
266 | if (ctx.repo->max_stats) | 266 | if (ctx.repo->max_stats) { |
267 | html(" "); | ||
267 | cgit_stats_link("stats", NULL, "button", ctx.qry.head, | 268 | cgit_stats_link("stats", NULL, "button", ctx.qry.head, |
268 | fullpath.buf); | 269 | fullpath.buf); |
269 | if (!S_ISGITLINK(mode)) | 270 | } |
271 | if (!S_ISGITLINK(mode)) { | ||
272 | html(" "); | ||
270 | cgit_plain_link("plain", NULL, "button", ctx.qry.head, | 273 | cgit_plain_link("plain", NULL, "button", ctx.qry.head, |
271 | walk_tree_ctx->curr_rev, fullpath.buf); | 274 | walk_tree_ctx->curr_rev, fullpath.buf); |
272 | if (!S_ISDIR(mode) && ctx.repo->enable_blame) | 275 | } |
276 | if (!S_ISDIR(mode) && ctx.repo->enable_blame) { | ||
277 | html(" "); | ||
273 | cgit_blame_link("blame", NULL, "button", ctx.qry.head, | 278 | cgit_blame_link("blame", NULL, "button", ctx.qry.head, |
274 | walk_tree_ctx->curr_rev, fullpath.buf); | 279 | walk_tree_ctx->curr_rev, fullpath.buf); |
280 | } | ||
275 | html("</td></tr>\n"); | 281 | html("</td></tr>\n"); |
276 | 282 | ||
277 | cleanup: | 283 | cleanup: |