diff options
author | Lars Hjemli <hjemli@gmail.com> | 2007-06-17 13:57:51 +0200 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-06-17 13:57:51 +0200 |
commit | 48c487d72daef7e71683a85f775db8d36ab20341 (patch) | |
tree | 8770334d7c77bd3e81f42ee12550e6db5febd4d2 /ui-repolist.c | |
parent | ui-tree: html/css cleanup (diff) | |
download | cgit-pink-48c487d72daef7e71683a85f775db8d36ab20341.tar.gz cgit-pink-48c487d72daef7e71683a85f775db8d36ab20341.zip |
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 <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | ui-repolist.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index 8ade91a..2018dab 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -89,9 +89,7 @@ void cgit_print_repolist(struct cacheitem *item) html_link_open(cgit_repourl(cgit_repo->url), "Summary", "button"); html("S</a>"); - html_link_open(cgit_pageurl(cgit_repo->name, "log", NULL), - "Log", "button"); - html("L</a>"); + cgit_log_link("L", "Log", "button", NULL, NULL, NULL); cgit_tree_link("F", "Files", "button", NULL, NULL, NULL); html("</td></tr>\n"); } |