diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl index 3f7c91b35d..0e05c3d48f 100644 --- a/templates/projects/view.tmpl +++ b/templates/projects/view.tmpl @@ -63,7 +63,7 @@
-
+
{{range .Columns}}
@@ -165,7 +165,7 @@
-{{if .CanWriteProjects}} +{{if $canWriteProject}} - {{template "repo/code/recently_pushed_new_branches" .}} - {{template "repo/code/fork_sync_message" .}} + {{if (not .Repository.IsArchived)}} + {{template "repo/code/recently_pushed_new_branches" .}} + {{template "repo/code/fork_sync_message" .}} + {{end}} {{if .IsViewFile}} {{template "repo/view_file" .}} diff --git a/templates/repo/issue/view_content/sidebar/branch_selector_field.tmpl b/templates/repo/issue/view_content/sidebar/branch_selector_field.tmpl index 373be61026..d865a407aa 100644 --- a/templates/repo/issue/view_content/sidebar/branch_selector_field.tmpl +++ b/templates/repo/issue/view_content/sidebar/branch_selector_field.tmpl @@ -1,13 +1,14 @@ {{if and (not .Issue.IsPull) (not .PageIsComparePull)}} +{{$hasIssuesOrPullsWritePermission := and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} - +
{{/* TODO: share this branch selector dropdown with the same in repo page */}} -