From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Sun, 5 Apr 2015 16:54:58 +0100 Subject: [PATCH 12/17] refs: move layout to page function In-Reply-To: References: Message-ID: <2a67c0a4d4cc3653059fd470a1e1bc0468e55a93.1428248621.git.john@keeping.me.uk> Signed-off-by: John Keeping --- cmd.c | 2 +- ui-refs.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd.c b/cmd.c index b61c736..57a8fe7 100644 --- a/cmd.c +++ b/cmd.c @@ -155,7 +155,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), diff --git a/ui-refs.c b/ui-refs.c index d3d71dd..29dc860 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -236,7 +236,7 @@ void cgit_print_tags(int maxcount) void cgit_print_refs(void) { - + cgit_print_layout_start(); html(""); if (ctx.qry.path && starts_with(ctx.qry.path, "heads")) @@ -249,4 +249,5 @@ void cgit_print_refs(void) cgit_print_tags(0); } html("
"); + cgit_print_layout_end(); } -- 2.4.0.rc0.173.gb1cefcc