]> granicus.if.org Git - cgit/commitdiff
refs: move layout to page function
authorJohn Keeping <john@keeping.me.uk>
Fri, 14 Aug 2015 11:47:16 +0000 (12:47 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 14 Aug 2015 13:46:51 +0000 (15:46 +0200)
Signed-off-by: John Keeping <john@keeping.me.uk>
cmd.c
ui-refs.c

diff --git a/cmd.c b/cmd.c
index 0bf4c76b649b54f588aae6a984c711c5b5d3e051..ce66af917a3f55d1bdd6c215d62ec9259d98ace3 100644 (file)
--- a/cmd.c
+++ b/cmd.c
@@ -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),
index 73a187be5b0c502facefced6720d26d3e1601eb2..be3572cadd21b04e52f8356573be34f527363488 100644 (file)
--- 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("<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();
 }