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:
@ -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='");
|
||||
|
Verwijs in nieuw issue
Block a user