List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH] RFC: Hide owner value in repo overwiev
@ 2013-04-16 14:11 plenz
  2013-04-16 14:33 ` Jason
  0 siblings, 1 reply; 2+ messages in thread
From: plenz @ 2013-04-16 14:11 UTC (permalink / 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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] RFC: Hide owner value in repo overwiev
  2013-04-16 14:11 [PATCH] RFC: Hide owner value in repo overwiev plenz
@ 2013-04-16 14:33 ` Jason
  0 siblings, 0 replies; 2+ messages in thread
From: Jason @ 2013-04-16 14:33 UTC (permalink / raw)


Seems somewhat reasonable to me, though in the specific case of
git.zx2c4.com, I actually like to have the owner hidden in the index list
yet have it shown on each individual repository. Silly preference perhaps.

I don't really like the idea of adding yet-another-nob though.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-16 14:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-16 14:11 [PATCH] RFC: Hide owner value in repo overwiev plenz
2013-04-16 14:33 ` Jason

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).