From: plenz at cis.fu-berlin.de (Julius Plenz)
Subject: [PATCH] RFC: Hide owner value in repo overwiev
Date: Tue, 16 Apr 2013 16:11:25 +0200 [thread overview]
Message-ID: <1366121485-970183-1-git-send-email-plenz@cis.fu-berlin.de> (raw)
This is not strictly the stated purpose of the setting
"enable-index-owner", but chances are that if you don't want to display
this information in the index you don't want to display it in the
header, either.
Signed-off-by: Julius Plenz <plenz at cis.fu-berlin.de>
---
ui-shared.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ui-shared.c b/ui-shared.c
index 519eef7..af0b6f8 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -830,7 +830,8 @@ static void print_header(struct cgit_context *ctx)
if (ctx->repo) {
html_txt(ctx->repo->desc);
html("</td><td class='sub right'>");
- html_txt(ctx->repo->owner);
+ if(ctx->cfg.enable_index_owner)
+ html_txt(ctx->repo->owner);
} else {
if (ctx->cfg.root_desc)
html_txt(ctx->cfg.root_desc);
--
1.8.2.1-zedat
next reply other threads:[~2013-04-16 14:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-16 14:11 plenz [this message]
2013-04-16 14:33 ` Jason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1366121485-970183-1-git-send-email-plenz@cis.fu-berlin.de \
--to=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).