diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 343425134b..46d0398c21 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -102,7 +102,8 @@ {{end}} -
+ {{/* by default, the row-right flex grows, but on non-root tree path, it should not because the row-left might contain a long path */}} +
{{if $isTreePathRoot}}
@@ -122,7 +123,6 @@ {{template "repo/clone_script" .}}{{/* the script will update `.js-clone-url` and related elements */}}
- {{template "repo/cite/cite_modal" .}} {{end}} {{if and (not $isTreePathRoot) (not .IsViewFile) (not .IsBlame)}}{{/* IsViewDirectory (not home), TODO: split the templates, avoid using "if" tricks */}} diff --git a/templates/repo/home_sidebar_top.tmpl b/templates/repo/home_sidebar_top.tmpl index d36c5b0433..4b0ebcd390 100644 --- a/templates/repo/home_sidebar_top.tmpl +++ b/templates/repo/home_sidebar_top.tmpl @@ -43,22 +43,23 @@ {{end}} {{if .ReadmeExist}} {{end}} {{if .DetectedRepoLicenses}} {{end}} {{if .CitiationExist}} {{end}}