1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-16 07:04:25 +00:00

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>
This commit is contained in:
puni9869 2023-07-08 16:27:17 +05:30 committed by GitHub
parent 429c12fe62
commit 2ff0c12a95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View File

@ -214,7 +214,7 @@
<button class="ui button green show-form">{{.locale.Tr "repo.pulls.new"}}</button> <button class="ui button green show-form">{{.locale.Tr "repo.pulls.new"}}</button>
</div> </div>
{{else if .Repository.IsArchived}} {{else if .Repository.IsArchived}}
<div class="ui warning message"> <div class="ui warning message gt-text-center">
{{if .Repository.ArchivedUnix.IsZero}} {{if .Repository.ArchivedUnix.IsZero}}
{{.locale.Tr "repo.archive.title"}} {{.locale.Tr "repo.archive.title"}}
{{else}} {{else}}

View File

@ -6,7 +6,7 @@
<div class="sixteen wide column content"> <div class="sixteen wide column content">
{{template "base/alert" .}} {{template "base/alert" .}}
{{if .Repository.IsArchived}} {{if .Repository.IsArchived}}
<div class="ui warning message"> <div class="ui warning message gt-text-center">
{{if .Repository.ArchivedUnix.IsZero}} {{if .Repository.ArchivedUnix.IsZero}}
{{.locale.Tr "repo.archive.title"}} {{.locale.Tr "repo.archive.title"}}
{{else}} {{else}}

View File

@ -53,7 +53,7 @@
</div> </div>
{{end}} {{end}}
{{if .Repository.IsArchived}} {{if .Repository.IsArchived}}
<div class="ui warning message"> <div class="ui warning message gt-text-center">
{{if .Repository.ArchivedUnix.IsZero}} {{if .Repository.ArchivedUnix.IsZero}}
{{.locale.Tr "repo.archive.title"}} {{.locale.Tr "repo.archive.title"}}
{{else}} {{else}}

View File

@ -125,7 +125,7 @@
</div> </div>
</div> </div>
{{else if .Repository.IsArchived}} {{else if .Repository.IsArchived}}
<div class="ui warning message"> <div class="ui warning message gt-text-center">
{{if .Issue.IsPull}} {{if .Issue.IsPull}}
{{.locale.Tr "repo.archive.pull.nocomment"}} {{.locale.Tr "repo.archive.pull.nocomment"}}
{{else}} {{else}}
@ -135,7 +135,7 @@
{{end}} {{end}}
{{else}} {{/* not .IsSigned */}} {{else}} {{/* not .IsSigned */}}
{{if .Repository.IsArchived}} {{if .Repository.IsArchived}}
<div class="ui warning message"> <div class="ui warning message gt-text-center">
{{if .Issue.IsPull}} {{if .Issue.IsPull}}
{{.locale.Tr "repo.archive.pull.nocomment"}} {{.locale.Tr "repo.archive.pull.nocomment"}}
{{else}} {{else}}

View File

@ -1,7 +1,7 @@
{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}} {{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}}
<div class="repo-setting-content"> <div class="repo-setting-content">
{{if .Repository.IsArchived}} {{if .Repository.IsArchived}}
<div class="ui warning message"> <div class="ui warning message gt-text-center">
{{.locale.Tr "repo.settings.archive.branchsettings_unavailable"}} {{.locale.Tr "repo.settings.archive.branchsettings_unavailable"}}
</div> </div>
{{else}} {{else}}

View File

@ -1,7 +1,7 @@
{{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}} {{template "repo/settings/layout_head" (dict "ctxData" . "pageClass" "repository settings edit")}}
<div class="repo-setting-content"> <div class="repo-setting-content">
{{if .Repository.IsArchived}} {{if .Repository.IsArchived}}
<div class="ui warning message"> <div class="ui warning message gt-text-center">
{{.locale.Tr "repo.settings.archive.tagsettings_unavailable"}} {{.locale.Tr "repo.settings.archive.tagsettings_unavailable"}}
</div> </div>
{{else}} {{else}}