]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-tree.c
added snapshot filename to the link
[ps-cgit] / ui-tree.c
index e16b63828dcf7b29c32da71454276b809174d404..c5d64ffe81246cd6fbf937b8ae1fe9dfd84bfdd9 100644 (file)
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -58,7 +58,6 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
        char *fullpath;
        enum object_type type;
        unsigned long size = 0;
-       char *url, *qry;
 
        name = xstrdup(pathname);
        fullpath = fmt("%s%s%s", cgit_query_path ? cgit_query_path : "",
@@ -93,8 +92,8 @@ 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);
+       cgit_log_link("log", NULL, "button", cgit_query_head, curr_rev,
+                     fullpath, 0);
        html("</td></tr>\n");
        free(name);
        return 0;