neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit 73b54f7d7e21fbb15c50e21eafe1737df96b2073
parent cb92d05b6b729cd0e219b43d7a79aff832a9c1ac
Author: Lars Hjemli <hjemli@gmail.com>
Date:   Tue, 18 Aug 2009 13:14:11 +0200

Merge branch 'stable'

Diffstat:
Mui-shared.c | 19+++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/ui-shared.c b/ui-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) {