From 0b510725c97452bac57ff0080df10f6177aa2a6e Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 23 Jan 2019 19:58:38 +0100 Subject: Feature: Archive repos (#5009) --- templates/repo/diff/box.tmpl | 48 ++++----- templates/repo/diff/comment_form.tmpl | 2 +- templates/repo/empty.tmpl | 32 +++--- templates/repo/header.tmpl | 1 + templates/repo/home.tmpl | 5 + templates/repo/issue/labels.tmpl | 58 +++++------ templates/repo/issue/list.tmpl | 16 +-- templates/repo/issue/milestone_issues.tmpl | 10 +- templates/repo/issue/milestones.tmpl | 4 +- templates/repo/issue/view.tmpl | 16 +-- templates/repo/issue/view_content.tmpl | 92 +++++++++-------- templates/repo/issue/view_content/comments.tmpl | 42 ++++---- templates/repo/issue/view_content/sidebar.tmpl | 22 ++--- templates/repo/issue/view_title.tmpl | 2 +- templates/repo/settings/branches.tmpl | 126 +++++++++++++----------- templates/repo/settings/options.tmpl | 55 +++++++++++ 16 files changed, 315 insertions(+), 216 deletions(-) (limited to 'templates/repo') diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index 35f6ae36be..331a17a5e9 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -8,7 +8,7 @@ {{ if .IsSplitStyle }}{{.i18n.Tr "repo.diff.show_unified_view"}}{{else}}{{.i18n.Tr "repo.diff.show_split_view"}}{{end}} {{end}} {{.i18n.Tr "repo.diff.show_diff_stats"}} - {{if and .PageIsPullFiles $.SignedUserID}} + {{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}} {{template "repo/diff/new_review" .}} {{end}} @@ -27,7 +27,7 @@ {{ if .IsSplitStyle }}{{.i18n.Tr "repo.diff.show_unified_view"}}{{else}}{{.i18n.Tr "repo.diff.show_split_view"}}{{end}} {{end}} {{.i18n.Tr "repo.diff.show_diff_stats"}} - {{if and .PageIsPullFiles $.SignedUserID}} + {{if and .PageIsPullFiles $.SignedUserID (not .IsArchived)}} {{template "repo/diff/new_review" .}} {{end}} @@ -194,27 +194,29 @@ {{end}} -
- {{template "repo/diff/new_comment" dict "root" .}} -
-
-
- -
- -
-
- {{$.i18n.Tr "loading"}} -
-
-
{{.i18n.Tr "repo.issues.cancel"}}
-
{{.i18n.Tr "repo.issues.save"}}
-
-
-
+ {{if not $.Repository.IsArchived}} +
+ {{template "repo/diff/new_comment" dict "root" .}} +
+
+
+ +
+ +
+
+ {{$.i18n.Tr "loading"}} +
+
+
{{.i18n.Tr "repo.issues.cancel"}}
+
{{.i18n.Tr "repo.issues.save"}}
+
+
+
+ {{end}} {{if .IsSplitStyle}}