summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--ui-shared.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 7287956..03d147f 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -480,2 +480,5 @@ void cgit_print_pageheader(struct cgit_context *ctx)
html("<td class='logo' rowspan='2'><a href='");
+ if (ctx->cfg.logo_link)
+ html_attr(ctx->cfg.logo_link);
+ else
html_attr(cgit_rooturl());
@@ -485,5 +488,8 @@ void cgit_print_pageheader(struct cgit_context *ctx)
html("<td class='main'>");
- if (ctx->repo)
+ if (ctx->repo) {
+ html("<a href='");
+ html_attr(cgit_rooturl());
+ html("'>index</a> / ");
html_txt(ctx->repo->name);
- else
+ } else
html_txt(ctx->cfg.root_title);