-
-
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
Conversation
- Make it consistent with the other modals of the dangerous actions. Refs: https://codeberg.org/forgejo/forgejo/pulls/1432 (cherry picked from commit 8b1225f)
<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 comment
The reason will be displayed to describe this comment to others. Learn more.
Why is modal_actions_confirm.tmpl
unsuitable?
<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}}"> |
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.
What happened in these lines?
Whitespace seems to have changed, but I don't understand why.
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.
They would like to fix a "misalignment" bug, but the bug doesn't exist in Gitea anymore.
@@ -976,20 +976,23 @@ | |||
{{end}} | |||
</div> | |||
<div class="content"> | |||
<p> | |||
<div class="ui warning message"> |
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.
Refs: https://codeberg.org/forgejo/forgejo/pulls/1432
(cherry picked from commit 8b1225f)