all repos — cgit @ 6d39dd1914dd0a904c606b079e8ef0f1643f2266

a hyperfast web frontend for git written in c

refs: move layout to page function

Signed-off-by: John Keeping <john@keeping.me.uk>
John Keeping john@keeping.me.uk
Fri, 14 Aug 2015 12:47:16 +0100
commit

6d39dd1914dd0a904c606b079e8ef0f1643f2266

parent

23c17d8ff01b96619bc1f71274cb44f1425e10f4

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M cmd.ccmd.c

@@ -166,7 +166,7 @@ def_cmd(objects, 1, 0, 0, 1),

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),
M ui-refs.cui-refs.c

@@ -236,7 +236,7 @@ }

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 @@ html("<tr class='nohover'><td colspan='5'>&nbsp;</td></tr>");

cgit_print_tags(0); } html("</table>"); + cgit_print_layout_end(); }