From 7cb5b4bad377b459eca3859aebc607e6587cec4f Mon Sep 17 00:00:00 2001 From: puni9869 Date: Sat, 8 Jul 2023 14:01:06 +0530 Subject: [PATCH 1/2] Archive text title center align --- templates/repo/diff/compare.tmpl | 2 +- templates/repo/empty.tmpl | 2 +- templates/repo/home.tmpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl index 4387e8907182f..034a6d872cb5f 100644 --- a/templates/repo/diff/compare.tmpl +++ b/templates/repo/diff/compare.tmpl @@ -214,7 +214,7 @@ {{else if .Repository.IsArchived}} -
+
{{if .Repository.ArchivedUnix.IsZero}} {{.locale.Tr "repo.archive.title"}} {{else}} diff --git a/templates/repo/empty.tmpl b/templates/repo/empty.tmpl index b81b312c6c5fd..cd6cdde84b470 100644 --- a/templates/repo/empty.tmpl +++ b/templates/repo/empty.tmpl @@ -6,7 +6,7 @@
{{template "base/alert" .}} {{if .Repository.IsArchived}} -
+
{{if .Repository.ArchivedUnix.IsZero}} {{.locale.Tr "repo.archive.title"}} {{else}} diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 386908e424647..0a5aa3a480874 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -53,7 +53,7 @@
{{end}} {{if .Repository.IsArchived}} -
+
{{if .Repository.ArchivedUnix.IsZero}} {{.locale.Tr "repo.archive.title"}} {{else}} From 5a58c985648e01922b3d8a91435b32a3736867ce Mon Sep 17 00:00:00 2001 From: puni9869 Date: Sat, 8 Jul 2023 15:45:24 +0530 Subject: [PATCH 2/2] Archive text title center align Added in repo->settings->branch/tag page --- templates/repo/diff/compare.tmpl | 2 +- templates/repo/empty.tmpl | 2 +- templates/repo/home.tmpl | 2 +- templates/repo/issue/view_content.tmpl | 4 ++-- templates/repo/settings/branches.tmpl | 2 +- templates/repo/settings/tags.tmpl | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl index 034a6d872cb5f..3bb7c2e81f89f 100644 --- a/templates/repo/diff/compare.tmpl +++ b/templates/repo/diff/compare.tmpl @@ -214,7 +214,7 @@
{{else if .Repository.IsArchived}} -
+
{{if .Repository.ArchivedUnix.IsZero}} {{.locale.Tr "repo.archive.title"}} {{else}} diff --git a/templates/repo/empty.tmpl b/templates/repo/empty.tmpl index cd6cdde84b470..b2476cfea84da 100644 --- a/templates/repo/empty.tmpl +++ b/templates/repo/empty.tmpl @@ -6,7 +6,7 @@
{{template "base/alert" .}} {{if .Repository.IsArchived}} -
+
{{if .Repository.ArchivedUnix.IsZero}} {{.locale.Tr "repo.archive.title"}} {{else}} diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 0a5aa3a480874..394bab1e38be1 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -53,7 +53,7 @@
{{end}} {{if .Repository.IsArchived}} -
+
{{if .Repository.ArchivedUnix.IsZero}} {{.locale.Tr "repo.archive.title"}} {{else}} diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index dc2754d5c6b93..ab8da434ee579 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -125,7 +125,7 @@
{{else if .Repository.IsArchived}} -
+
{{if .Issue.IsPull}} {{.locale.Tr "repo.archive.pull.nocomment"}} {{else}} @@ -135,7 +135,7 @@ {{end}} {{else}} {{/* not .IsSigned */}} {{if .Repository.IsArchived}} -
+
{{if .Issue.IsPull}} {{.locale.Tr "repo.archive.pull.nocomment"}} {{else}} diff --git a/templates/repo/settings/branches.tmpl b/templates/repo/settings/branches.tmpl index 9a8c5880f78c5..f8a0270db3897 100644 --- a/templates/repo/settings/branches.tmpl +++ b/templates/repo/settings/branches.tmpl @@ -1,7 +1,7 @@ {{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}}
{{if .Repository.IsArchived}} -
+
{{.locale.Tr "repo.settings.archive.branchsettings_unavailable"}}
{{else}} diff --git a/templates/repo/settings/tags.tmpl b/templates/repo/settings/tags.tmpl index e618c3fb03a48..b3e8cefa6c4f7 100644 --- a/templates/repo/settings/tags.tmpl +++ b/templates/repo/settings/tags.tmpl @@ -1,7 +1,7 @@ {{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}}
{{if .Repository.IsArchived}} -
+
{{.locale.Tr "repo.settings.archive.tagsettings_unavailable"}}
{{else}}