diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl
index 877241fb3..1c8942d42 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 f4eefd3fd..f264a9b55 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 b3f88c662..acabe3478 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}}