summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorpuni9869 <80308335+puni9869@users.noreply.github.com>2023-07-08 16:27:17 +0530
committerGitHub <noreply@github.com>2023-07-08 10:57:17 +0000
commit2ff0c12a95d52ef97286b5bce681a0c33263cd1b (patch)
tree8ab2a700f585e371554bf47f1eacac4db5a37b9b /templates/repo
parent429c12fe6220a9f854ee5f3275da7e43ba47f89e (diff)
downloadgitea-2ff0c12a95d52ef97286b5bce681a0c33263cd1b.tar.gz
gitea-2ff0c12a95d52ef97286b5bce681a0c33263cd1b.zip
Repository Archived text title center align (#25767)
Archive text title center align <details> <summary>Screen shots</summary> Before ![image](https://github.com/go-gitea/gitea/assets/80308335/90182367-4d06-4fc8-b7aa-21c21225d2bd) After ![image](https://github.com/go-gitea/gitea/assets/80308335/3dcc0d0d-75f4-415d-afbf-03921075b4db) ![image](https://github.com/go-gitea/gitea/assets/80308335/317d74f8-0ae9-4dc7-9508-1833d2d4f327) BTW On github ![image](https://github.com/go-gitea/gitea/assets/80308335/1801fd2d-1803-4ee6-8856-ef2f623df2b4) </details> --------- Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/diff/compare.tmpl2
-rw-r--r--templates/repo/empty.tmpl2
-rw-r--r--templates/repo/home.tmpl2
-rw-r--r--templates/repo/issue/view_content.tmpl4
-rw-r--r--templates/repo/settings/branches.tmpl2
-rw-r--r--templates/repo/settings/tags.tmpl2
6 files changed, 7 insertions, 7 deletions
diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl
index 4387e89071..3bb7c2e81f 100644
--- a/templates/repo/diff/compare.tmpl
+++ b/templates/repo/diff/compare.tmpl
@@ -214,7 +214,7 @@
<button class="ui button green show-form">{{.locale.Tr "repo.pulls.new"}}</button>
</div>
{{else if .Repository.IsArchived}}
- <div class="ui warning message">
+ <div class="ui warning message gt-text-center">
{{if .Repository.ArchivedUnix.IsZero}}
{{.locale.Tr "repo.archive.title"}}
{{else}}
diff --git a/templates/repo/empty.tmpl b/templates/repo/empty.tmpl
index b81b312c6c..b2476cfea8 100644
--- a/templates/repo/empty.tmpl
+++ b/templates/repo/empty.tmpl
@@ -6,7 +6,7 @@
<div class="sixteen wide column content">
{{template "base/alert" .}}
{{if .Repository.IsArchived}}
- <div class="ui warning message">
+ <div class="ui warning message gt-text-center">
{{if .Repository.ArchivedUnix.IsZero}}
{{.locale.Tr "repo.archive.title"}}
{{else}}
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 386908e424..394bab1e38 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -53,7 +53,7 @@
</div>
{{end}}
{{if .Repository.IsArchived}}
- <div class="ui warning message">
+ <div class="ui warning message gt-text-center">
{{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 dc2754d5c6..ab8da434ee 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -125,7 +125,7 @@
</div>
</div>
{{else if .Repository.IsArchived}}
- <div class="ui warning message">
+ <div class="ui warning message gt-text-center">
{{if .Issue.IsPull}}
{{.locale.Tr "repo.archive.pull.nocomment"}}
{{else}}
@@ -135,7 +135,7 @@
{{end}}
{{else}} {{/* not .IsSigned */}}
{{if .Repository.IsArchived}}
- <div class="ui warning message">
+ <div class="ui warning message gt-text-center">
{{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 9a8c5880f7..f8a0270db3 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")}}
<div class="repo-setting-content">
{{if .Repository.IsArchived}}
- <div class="ui warning message">
+ <div class="ui warning message gt-text-center">
{{.locale.Tr "repo.settings.archive.branchsettings_unavailable"}}
</div>
{{else}}
diff --git a/templates/repo/settings/tags.tmpl b/templates/repo/settings/tags.tmpl
index e618c3fb03..b3e8cefa6c 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")}}
<div class="repo-setting-content">
{{if .Repository.IsArchived}}
- <div class="ui warning message">
+ <div class="ui warning message gt-text-center">
{{.locale.Tr "repo.settings.archive.tagsettings_unavailable"}}
</div>
{{else}}