| -rw-r--r-- | ui-shared.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ui-shared.c b/ui-shared.c index 03d147f..7287956 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -478,20 +478,14 @@ void cgit_print_pageheader(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_attr(cgit_rooturl()); html("'><img src='"); html_attr(ctx->cfg.logo); html("'/></a></td>\n"); html("<td class='main'>"); - if (ctx->repo) { - html("<a href='"); - html_attr(cgit_rooturl()); - html("'>index</a> / "); + if (ctx->repo) html_txt(ctx->repo->name); - } else + else html_txt(ctx->cfg.root_title); html("</td></tr>\n"); html("<tr><td class='sub'>"); |