From 48c487d72daef7e71683a85f775db8d36ab20341 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 17 Jun 2007 13:57:51 +0200 Subject: Add git_log_link() and fix bug in generic repolink function The generic repolink function compared head with cgit_query_head, which almost always would be the same pointer. The test now compares with repo.defbranch, which is the wanted behavour. Bug discovered while adding cgit_log_link(), so this commit also contain that change. Signed-off-by: Lars Hjemli --- ui-tree.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'ui-tree.c') diff --git a/ui-tree.c b/ui-tree.c index d503bee..e16b638 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -92,14 +92,10 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, } htmlf("%li", size); - html("L"); - html("\n"); + html(""); + cgit_log_link("L", "Log", "button", cgit_query_head, curr_rev, + fullpath); + html("\n"); free(name); return 0; } -- cgit v1.2.3-70-g09d2