diff options
author | Lars Hjemli <hjemli@gmail.com> | 2008-02-23 22:45:33 +0100 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-03-18 08:13:10 +0100 |
commit | b1f9b9c1459cb9a30ebf80721aff6ef788d1f891 (patch) | |
tree | 05796a741faef90c12aadd3a5c92b702ec870c48 /ui-tree.c | |
parent | b88fb016d0209f7041ac7d3b4d2c077318407a4d (diff) |
Introduce html.h
All html-functions can be quite easily separated from the rest of cgit, so
lets do it; the only issue was html_filemode which uses some git-defined
macros so the function is moved into ui-shared.c::cgit_print_filemode().
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-tree.c')
-rw-r--r-- | ui-tree.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -7,6 +7,7 @@ */ #include "cgit.h" +#include "html.h" char *curr_rev; char *match_path; @@ -79,7 +80,7 @@ static int ls_item(const unsigned char *sha1, const char *base, int baselen, } 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='"); |