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>
This commit is contained in:
Lars Hjemli
2008-02-23 22:45:33 +01:00
bovenliggende b88fb016d0
commit b1f9b9c145
17 gewijzigde bestanden met toevoegingen van 71 en 46 verwijderingen

Bestand weergeven

@ -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='");