refs: move layout to page function

Signed-off-by: John Keeping <john@keeping.me.uk>
Šī revīzija ir iekļauta:
John Keeping 2015-08-14 12:47:16 +01:00 revīziju iesūtīja Jason A. Donenfeld
vecāks 23c17d8ff0
revīzija 6d39dd1914
2 mainīti faili ar 3 papildinājumiem un 2 dzēšanām

2
cmd.c
Parādīt failu

@ -166,7 +166,7 @@ struct cgit_cmd *cgit_get_cmd(void)
def_cmd(patch, 1, 0, 1, 0),
def_cmd(plain, 1, 0, 0, 0),
def_cmd(rawdiff, 1, 0, 1, 0),
def_cmd(refs, 1, 1, 0, 0),
def_cmd(refs, 1, 0, 0, 0),
def_cmd(repolist, 0, 0, 0, 0),
def_cmd(snapshot, 1, 0, 0, 0),
def_cmd(stats, 1, 1, 1, 0),

Parādīt failu

@ -236,7 +236,7 @@ void cgit_print_tags(int maxcount)
void cgit_print_refs(void)
{
cgit_print_layout_start();
html("<table class='list nowrap'>");
if (ctx.qry.path && starts_with(ctx.qry.path, "heads"))
@ -249,4 +249,5 @@ void cgit_print_refs(void)
cgit_print_tags(0);
}
html("</table>");
cgit_print_layout_end();
}