@@ -115,7 +116,7 @@
- {{template "repo/sidebar/repo_info" .}}
+ {{template "repo/sidebar/repo_info" dict "ctxData" . "HiddenInMobileView" true}}
{{if .LatestRelease}}
diff --git a/templates/repo/sidebar/repo_info.tmpl b/templates/repo/sidebar/repo_info.tmpl
index 5f54ea36167ff..b82d05546d34c 100644
--- a/templates/repo/sidebar/repo_info.tmpl
+++ b/templates/repo/sidebar/repo_info.tmpl
@@ -1,28 +1,30 @@
-{{if and (not .HideRepoInfo) (not .IsBlame)}}
-
+{{if and (not .ctxData.HideRepoInfo) (not .ctxData.IsBlame)}}
+
-
- {{ctx.Locale.Tr "repo.repo_desc"}}
-
+ {{if .HiddenInMobileView}}
+
+ {{ctx.Locale.Tr "repo.repo_desc"}}
+
+ {{end}}
-
+
- {{$description := .Repository.DescriptionHTML $.Context}}
- {{if $description}}{{$description | RenderCodeBlock}}{{else if .IsRepositoryAdmin}}{{ctx.Locale.Tr "repo.no_desc"}}{{end}}
- {{.Repository.Website}}
+ {{$description := .ctxData.Repository.DescriptionHTML $.ctxData.Context}}
+ {{if $description}}{{$description | RenderCodeBlock}}{{else if .ctxData.IsRepositoryAdmin}}{{ctx.Locale.Tr "repo.no_desc"}}{{end}}
+ {{.ctxData.Repository.Website}}
- {{if .RepoSearchEnabled}}
+ {{if .ctxData.RepoSearchEnabled}}
-