all repos — cgit @ 73b54f7d7e21fbb15c50e21eafe1737df96b2073

a hyperfast web frontend for git written in c

Merge branch 'stable'
Lars Hjemli hjemli@gmail.com
Tue, 18 Aug 2009 13:14:11 +0200
commit

73b54f7d7e21fbb15c50e21eafe1737df96b2073

parent

cb92d05b6b729cd0e219b43d7a79aff832a9c1ac

1 files changed, 11 insertions(+), 8 deletions(-)

jump to
M ui-shared.cui-shared.c

@@ -630,14 +630,17 @@ static void print_header(struct cgit_context *ctx)

{ html("<table id='header'>\n"); html("<tr>\n"); - html("<td class='logo' rowspan='2'><a href='"); - if (ctx->cfg.logo_link) - html_attr(ctx->cfg.logo_link); - else - html_attr(cgit_rooturl()); - html("'><img src='"); - html_attr(ctx->cfg.logo); - html("' alt='cgit logo'/></a></td>\n"); + + if (ctx->cfg.logo && ctx->cfg.logo[0] != 0) { + html("<td class='logo' rowspan='2'><a href='"); + if (ctx->cfg.logo_link) + html_attr(ctx->cfg.logo_link); + else + html_attr(cgit_rooturl()); + html("'><img src='"); + html_attr(ctx->cfg.logo); + html("' alt='cgit logo'/></a></td>\n"); + } html("<td class='main'>"); if (ctx->repo) {