]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-tree.c
Add ui-shared.h
[ps-cgit] / ui-tree.c
index 7cae85a5f299ac16f2c0840eec323a1346c576e7..9be3140c40b7583bfa07a435735f958c6d39b723 100644 (file)
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -7,6 +7,8 @@
  */
 
 #include "cgit.h"
  */
 
 #include "cgit.h"
+#include "html.h"
+#include "ui-shared.h"
 
 char *curr_rev;
 char *match_path;
 
 char *curr_rev;
 char *match_path;
@@ -79,11 +81,11 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen,
        }
 
        html("<tr><td class='ls-mode'>");
        }
 
        html("<tr><td class='ls-mode'>");
-       html_filemode(mode);
+       cgit_print_filemode(mode);
        html("</td><td>");
        if (S_ISGITLINK(mode)) {
                htmlf("<a class='ls-mod' href='");
        html("</td><td>");
        if (S_ISGITLINK(mode)) {
                htmlf("<a class='ls-mod' href='");
-               html_attr(fmt(cgit_repo->module_link,
+               html_attr(fmt(ctx.repo->module_link,
                              name,
                              sha1_to_hex(sha1)));
                html("'>");
                              name,
                              sha1_to_hex(sha1)));
                html("'>");