-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
tidy up archive modal #27131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tidy up archive modal #27131
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -976,20 +976,23 @@ | |
{{end}} | ||
</div> | ||
<div class="content"> | ||
<p> | ||
<div class="ui warning message"> | ||
{{if .Repository.IsArchived}} | ||
{{.locale.Tr "repo.settings.unarchive.text"}} | ||
{{else}} | ||
{{.locale.Tr "repo.settings.archive.text"}} | ||
{{end}} | ||
</p> | ||
</div> | ||
<form action="{{.Link}}" method="post"> | ||
{{.CsrfTokenHtml}} | ||
<input type="hidden" name="action" value="{{if .Repository.IsArchived}}unarchive{{else}}archive{{end}}"> | ||
<input type="hidden" name="repo_id" value="{{.Repository.ID}}"> | ||
{{template "base/modal_actions_confirm" .}} | ||
</div> | ||
<form action="{{.Link}}" method="post"> | ||
{{.CsrfTokenHtml}} | ||
<input type="hidden" name="action" value="{{if .Repository.IsArchived}}unarchive{{else}}archive{{end}}"> | ||
<input type="hidden" name="repo_id" value="{{.Repository.ID}}"> | ||
Comment on lines
+986
to
+989
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happened in these lines? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They would like to fix a "misalignment" bug, but the bug doesn't exist in Gitea anymore. |
||
<div class="text right actions"> | ||
<button class="ui cancel button">{{.locale.Tr "settings.cancel"}}</button> | ||
<button class="ui red button">{{.locale.Tr "repo.settings.archive.button"}}</button> | ||
</div> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is |
||
</form> | ||
</div> | ||
</div> | ||
{{end}} | ||
{{end}} | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes the UI looks unnecessarily complex by using such
warning message
.I never see a dialog with inner warning color/border for the main content.
I think the old UI looks good enough, the content message is rendered as normal text: