]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-summary.c
Add git_log_link() and fix bug in generic repolink function
[ps-cgit] / ui-summary.c
index 4bda4c2f73f8ed98195e5d0c427c6d85a3a9cb05..29b76e368366469353b311a7a8b2a3cc5cfd333c 100644 (file)
@@ -25,11 +25,7 @@ static int cgit_print_branch_cb(const char *refname, const unsigned char *sha1,
        if (commit && !parse_commit(commit)){
                info = cgit_parse_commit(commit);
                html("<tr><td>");
        if (commit && !parse_commit(commit)){
                info = cgit_parse_commit(commit);
                html("<tr><td>");
-               url = cgit_pageurl(cgit_query_repo, "log",
-                                  fmt("h=%s", refname));
-               html_link_open(url, NULL, NULL);
-               html_txt(buf);
-               html_link_close();
+               cgit_log_link(refname, NULL, NULL, refname, NULL, NULL);
                html("</td><td>");
                cgit_print_age(commit->date, -1, NULL);
                html("</td><td>");
                html("</td><td>");
                cgit_print_age(commit->date, -1, NULL);
                html("</td><td>");