-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Show source/target branches on PR's list #19747
Conversation
I wonder if we could hide it for mobile/smal-screen view? |
I can try. Can you give me any example from existing code (how to detect mobile device)? |
And I think we can display them like what they displayed in the pull request view page. |
Do we really need option to disable this in settings? We have way too many options already and this makes it harder to maintain all their combinations :) |
I don't know :) In my production these option is always enabled. I can remove it if we decide so. |
I'm ok with it as is |
I agree with @lafriks here - people can simply edit the template to avoid putting this in if they really don't want it. |
Or hide with css. I would understand if that was some kind of per-user setting where he could show/hide this but as displaying or not does not affect server performance I don't see need for such options in app.ini |
+1 for not introducing more setting options. |
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.
Need more reviews and fine tune ....
(since there are already 2 L-G-T-M, put a request change here to prevent from accident merge)
* Add AppSubURL to URL's * Synchronize coloring schemes * Fix SVG size
* clarify getRepoIDs usage, now it also returns the repo IDs for PullRequest.HeadRepo * remove unnecessary ctx.Data["AppSubURL"], use `repo.HTMLURL` instead * use span inside a tag, instead of div * escape the branch names in URL * remove unnecessary CSS styles and variables * use character instead of SVG arrows
Thank you for your updating, it looks fine. I did some refactoring on it, major changes and reasons:
|
@wxiaoguang looks great. Thanks for help |
|
Co-authored-by: Lauris BH <[email protected]>
This comment was marked as off-topic.
This comment was marked as off-topic.
🚀 |
* giteaofficial/main: Make WIP prefixes case insensitive, e.g. allow `Draft` as a WIP prefix (go-gitea#19780) Fix follower display on user page (go-gitea#19805) Show source/target branches on PR's list (go-gitea#19747)
Add ability to show source/target branches for Pull Request's list. It can be useful to see which branches are used in each PR right in the list. Co-authored-by: Alexey Korobkov <[email protected]> Co-authored-by: wxiaoguang <[email protected]> Co-authored-by: Lauris BH <[email protected]>
Add ability to show source/target branches for Pull Request's list. It can be useful to see which branches are used in each PR right in the list.
Implemented in this PR:
Ability to enable/disable branch info displaying on PR's listExamples: