From 6421dc38db02eff8d3ada93e87a2f7e5292af131 Mon Sep 17 00:00:00 2001 From: Matthew Metnetsky Date: Mon, 29 Jun 2009 21:27:51 -0400 Subject: ui-shared: don't print header if there isn't a logo defined Signed-off-by: Lars Hjemli --- ui-shared.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/ui-shared.c b/ui-shared.c index de77bbf..40060ba 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -611,14 +611,17 @@ void cgit_print_pageheader(struct cgit_context *ctx) html("\n"); html("\n"); - html("\n"); + + if (ctx->cfg.logo && ctx->cfg.logo[0] != 0) { + html("\n"); + } html("