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

Use shared/issueicon template in projects #24922

Merged
merged 2 commits into from
May 25, 2023

Conversation

silverwind
Copy link
Member

@silverwind silverwind commented May 25, 2023

We can reuse the recently created subtemplate here. I also checked the whole templates for similar constructs, these appear to be the only one.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 25, 2023
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 25, 2023
@silverwind silverwind added type/refactoring Existing code has been cleaned up. There should be no new functionality. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels May 25, 2023
templates/projects/view.tmpl Show resolved Hide resolved
templates/projects/view.tmpl Show resolved Hide resolved
@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 May 25, 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 May 25, 2023
@lunny lunny added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label May 25, 2023
@silverwind silverwind merged commit 79087bd into go-gitea:main May 25, 2023
@GiteaBot GiteaBot added this to the 1.20.0 milestone May 25, 2023
@silverwind silverwind deleted the reuse-issueicon branch May 25, 2023 12:25
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label May 25, 2023
@wxiaoguang
Copy link
Contributor

But the issueicon only contains one svg icon, and as an icon, it should be gt-dif gt-ac gt-vm for all cases, right?

@silverwind
Copy link
Member Author

gt-dif gt-ac gt-vm

Adding those classes to the parent node in the issue list slighly misaligns the icon (the icon there is not vertically centered in its container there). I'm all for sharing more HTML, but in this case I just don't see it feasible and the template should only return the <svg/> for maximum flexibilty.

BTW, If ever necessary, we can add dict arguments to the template to alter behaviour like size for example.

zjjhot added a commit to zjjhot/gitea that referenced this pull request May 26, 2023
* upstream/main:
  Use the type RefName for all the needed places and fix pull mirror sync bugs (go-gitea#24634)
  [skip ci] Updated translations via Crowdin
  Add Link to Stars and Forks Page to Repo List (go-gitea#24931)
  Fix documentation ref (go-gitea#24934)
  Add Chinese docs for help, contribution and development (go-gitea#24925)
  Merge two translation contributing documents (go-gitea#23939)
  Add the ability to pin Issues (go-gitea#24406)
  Use `shared/issueicon` template in projects (go-gitea#24922)
  Allow skipping forks and mirrors from being indexed (go-gitea#23187)
  Add Chinese documentations for Actions (go-gitea#24902)

# Conflicts:
#	templates/repo/issue/view_content/sidebar.tmpl
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Aug 23, 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. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. 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