diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl
index 877241fb39..1c8942d42f 100644
--- a/templates/repo/diff/compare.tmpl
+++ b/templates/repo/diff/compare.tmpl
@@ -5,8 +5,12 @@
{{if .PageIsComparePull}}
@@ -60,7 +64,11 @@
- {{end}}
+ {{ else }}
+
+ {{.i18n.Tr "repo.archive.title"}}
+
+ {{ end }}
{{template "repo/issue/new_form" .}}
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index f4eefd3fde..f264a9b559 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -46,7 +46,7 @@
{{end}}
-{{if not .IsDiffCompare}}
+
-{{else}}
-
-{{end}}
+
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index b3f88c662d..acabe34782 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -107,6 +107,14 @@
+ {{ else if .Repository.IsArchived }}
+
+ {{if .Issue.IsPull}}
+ {{.i18n.Tr "repo.archive.pull.nocomment"}}
+ {{else}}
+ {{.i18n.Tr "repo.archive.issue.nocomment"}}
+ {{end}}
+
{{ end }}
{{else}}
{{if .Repository.IsArchived}}