Skip to content
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

Improve show role #26621

Merged
merged 10 commits into from
Aug 22, 2023
Merged

Improve show role #26621

merged 10 commits into from
Aug 22, 2023

Conversation

yp05327
Copy link
Contributor

@yp05327 yp05327 commented Aug 21, 2023

Add a general show role template.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 21, 2023
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Aug 21, 2023
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Aug 21, 2023
@lunny lunny added the topic/ui Change the appearance of the Gitea UI label Aug 21, 2023
@lunny lunny added this to the 1.21.0 milestone Aug 21, 2023
@delvh delvh added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Aug 21, 2023
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Aug 21, 2023
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Aug 21, 2023
Copy link
Contributor

@wxiaoguang wxiaoguang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use new ctx.Locale instead of "locale" $.locale

@GiteaBot GiteaBot added lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged and removed lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. labels Aug 21, 2023
@wxiaoguang wxiaoguang removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Aug 21, 2023
@yp05327
Copy link
Contributor Author

yp05327 commented Aug 22, 2023

Please use new ctx.Locale instead of "locale" $.locale

Done.

</div>
{{end}}
{{if (.Issue.ShowRole.HasRole "Owner")}}
<div class="ui basic label role-label">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were "role-label" classes, they are lost now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only in this place have role-label class, didn't understand the usage here, but I understand the usage of role-label now: hide them in mobiles.

In GitHub will not display role label in mobiles, so we can add this in the general template.
image
image

In Gitea:
image
After:
image

@wxiaoguang wxiaoguang dismissed their stale review August 22, 2023 03:01

dismiss request change

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/blocked A maintainer has reservations with the PR and thus it cannot be merged labels Aug 22, 2023
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Aug 22, 2023
@wxiaoguang wxiaoguang enabled auto-merge (squash) August 22, 2023 04:57
@wxiaoguang wxiaoguang merged commit bd8a253 into go-gitea:main Aug 22, 2023
23 checks passed
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Aug 22, 2023
zjjhot added a commit to zjjhot/gitea that referenced this pull request Aug 22, 2023
* upstream/main:
  Improve show role (go-gitea#26621)
  Improve some flex layouts (go-gitea#26649)
  feat: implement organization secret creation API (go-gitea#26566)
  Check disabled workflow when rerun jobs (go-gitea#26535)
@yp05327 yp05327 deleted the improve-show-role branch October 23, 2023 01:40
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Nov 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. topic/ui Change the appearance of the Gitea UI type/refactoring Existing code has been cleaned up. There should be no new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants