summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--ui-shared.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui-shared.c b/ui-shared.c
index de77bbf..40060ba 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -611,6 +611,8 @@ void cgit_print_pageheader(struct cgit_context *ctx)
611 611
612 html("<table id='header'>\n"); 612 html("<table id='header'>\n");
613 html("<tr>\n"); 613 html("<tr>\n");
614
615 if (ctx->cfg.logo && ctx->cfg.logo[0] != 0) {
614 html("<td class='logo' rowspan='2'><a href='"); 616 html("<td class='logo' rowspan='2'><a href='");
615 if (ctx->cfg.logo_link) 617 if (ctx->cfg.logo_link)
616 html_attr(ctx->cfg.logo_link); 618 html_attr(ctx->cfg.logo_link);
@@ -619,6 +621,7 @@ void cgit_print_pageheader(struct cgit_context *ctx)
619 html("'><img src='"); 621 html("'><img src='");
620 html_attr(ctx->cfg.logo); 622 html_attr(ctx->cfg.logo);
621 html("' alt='cgit logo'/></a></td>\n"); 623 html("' alt='cgit logo'/></a></td>\n");
624 }
622 625
623 html("<td class='main'>"); 626 html("<td class='main'>");
624 if (ctx->repo) { 627 if (ctx->repo) {