From 4d94b7c60ad371ed461a0afc94ba8ea792aa506f Mon Sep 17 00:00:00 2001 From: neel1996 <47709856+neel1996@users.noreply.github.com> Date: Wed, 12 Oct 2022 02:20:12 +0530 Subject: [PATCH 1/5] fix: hide repo related info while viewing or blaming a file - Hide repository's description, website link, topics list, and statistics bar while viewing or blaming a file from the repo - Resolves #21406 --- templates/repo/home.tmpl | 2 ++ templates/repo/sub_menu.tmpl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index e1aa1c4f3b45..156c660a5a5b 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -3,6 +3,7 @@ {{template "repo/header" .}}
{{template "base/alert" .}} + {{if and (not .IsViewFile) (not .IsBlame)}}
{{$description := .Repository.DescriptionHTML $.Context}} @@ -31,6 +32,7 @@ {{range .Topics}}{{.Name}}{{end}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}{{.locale.Tr "repo.topic.manage_topics"}}{{end}}
+ {{end}} {{if and .Permission.IsAdmin (not .Repository.IsArchived)}}