From 8196430f47842fba4f227b105cd96d4b981d077d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 24 Mar 2017 16:25:40 -0400 Subject: repo: allow private repository to have public wiki or issues Relates to #649 and #2157 --- templates/repo/header.tmpl | 60 +++++++++++++++++++----------------- templates/repo/settings/options.tmpl | 39 +++++++++++++++-------- 2 files changed, 58 insertions(+), 41 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 2193d0a5..15f6025d 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -13,34 +13,36 @@ {{if .IsFork}}
{{$.i18n.Tr "repo.forked_from"}} {{SubStr .BaseRepo.RelLink 1 -1}}
{{end}} -
- - - {{if .CanBeForked}} + {{if not $.IsGuest}} + + + {{if .CanBeForked}} + + {{end}} +
+ {{end}} @@ -49,15 +51,17 @@ {{if not .IsDiffCompare}}