aboutsummaryrefslogtreecommitdiff
path: root/ui-tree.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'ui-tree.c')
-rw-r--r--ui-tree.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/ui-tree.c b/ui-tree.c
index e16b638..d503bee 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -92,10 +92,14 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
}
htmlf("</td><td class='ls-size'>%li</td>", size);
- html("<td>");
- cgit_log_link("L", "Log", "button", cgit_query_head, curr_rev,
- fullpath);
- html("</td></tr>\n");
+ html("<td><a href='");
+ qry = fmt("h=%s&amp;path=%s%s%s", curr_rev,
+ cgit_query_path ? cgit_query_path : "",
+ cgit_query_path ? "/" : "", pathname);
+ url = cgit_pageurl(cgit_query_repo, "log", qry);
+ html_attr(url);
+ html("' title='Log' class='button'>L</a></td>");
+ html("</tr>\n");
free(name);
return 0;
}