[prev in list] [next in list] [prev in thread] [next in thread]
List: cgit
Subject: [PATCH v2 16/22] refs: move layout to page function
From: John Keeping <john () keeping ! me ! uk>
Date: 2015-08-14 11:47:16
Message-ID: d75c253e326ef3df7f3b8a1acb400f5585e8e527.1439552492.git.john () keeping ! me ! uk
[Download RAW message or body]
Signed-off-by: John Keeping <john@keeping.me.uk>
---
cmd.c | 2 +-
ui-refs.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/cmd.c b/cmd.c
index 0bf4c76..ce66af9 100644
--- 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),
diff --git a/ui-refs.c b/ui-refs.c
index 73a187b..be3572c 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("<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();
}
--
2.5.0.466.g9af26fa
_______________________________________________
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic