Skip to content

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

Closed

Conversation

earl-warren
Copy link
Contributor

  • Make it consistent with the other modals of the dangerous actions.

Refs: https://codeberg.org/forgejo/forgejo/pulls/1432

(cherry picked from commit 8b1225f)

- Make it consistent with the other modals of the dangerous actions.

Refs: https://codeberg.org/forgejo/forgejo/pulls/1432

(cherry picked from commit 8b1225f)
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 19, 2023
@github-actions github-actions bot added the topic/ui Change the appearance of the Gitea UI label Sep 19, 2023
<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>
Copy link
Member

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?

Comment on lines +986 to +989
<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}}">
Copy link
Member

@delvh delvh Sep 19, 2023

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.

Copy link
Contributor

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">
Copy link
Contributor

@wxiaoguang wxiaoguang Sep 19, 2023

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:

image

@earl-warren earl-warren closed this Oct 9, 2023
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jan 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants