summaryrefslogtreecommitdiffstats
path: root/templates
Commit message (Collapse)AuthorAgeFilesLines
* πŸ› Fixe a keystring misuse and refactor duplicates keystrings (#32668) ↡Lunny Xiao2024-12-112-3/+3
| | | | | | | | | | | | | | | (#32792) Backport #32668 - Fixes a translation keystring misuse where the string 'open milestones' is used in place of 'closed milestones'. - De-duplicates the use of 'open milesones' and 'closed milestones' keystrings on the sidebar of an issue, reusing the ones on the issues filter and action bars. - Closes #32667 Co-authored-by: Simon Pistache <105607989+SimonPistache@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix fork page branch selection (#32711) (#32725)Giteabot2024-12-051-8/+6
| | | | | | | Backport #32711 by @lunny Fix #32709 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix word overflow in file search page (#32695) (#32699)Giteabot2024-12-041-1/+1
| | | | | Backport #32695 by yp05327 Co-authored-by: yp05327 <576951401@qq.com>
* Fix the missing menu in organization project view page (#32313) (#32592)Lunny Xiao2024-11-221-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | Backport #32313 #29248 didn't modify the view page. The class name is not good enough, so this is a quick fix. Before: org: ![image](https://github.com/user-attachments/assets/3e26502d-66b4-4043-ab03-003ba7391487) user: ![image](https://github.com/user-attachments/assets/9b22b90c-d63c-4228-acad-4d9fb20590ac) After: org: ![image](https://github.com/user-attachments/assets/21bf98a7-8a5b-4dc6-950a-88f529e36450) user: (no change) ![image](https://github.com/user-attachments/assets/fea0dcae-3625-44e8-bb9e-4c3733da8764) Co-authored-by: yp05327 <576951401@qq.com>
* Refactor find forks and fix possible bugs that weak permissions check ↡Lunny Xiao2024-11-191-3/+5
| | | | | | | | | | | | | | | (#32528) (#32547) Backport #32528 - Move models/GetForks to services/FindForks - Add doer as a parameter of FindForks to check permissions - Slight performance optimization for get forks API with batch loading of repository units - Add tests for forking repository to organizations --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix some places which doesn't repsect org full name setting (#32243) (#32550)Giteabot2024-11-192-2/+2
| | | | | | | Backport #32243 by @lunny Partially fix #31345 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* API: enhance SearchIssues swagger docs (#32208) (#32298)65432024-10-211-17/+41
| | | | | | | | Backport #32208 This will result in better api clients generated out of the openapi docs for SearchIssues --- *Sponsored by Kithara Software GmbH*
* Fix dropdown content overflow (#31610) (#32250)Giteabot2024-10-131-9/+31
| | | | | | | | Backport #31610 by charles7668 close #31602 Co-authored-by: charles <30816317+charles7668@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix javascript error when an anonymous user visiting migration page (#32144) ↡Lunny Xiao2024-10-041-1/+1
| | | | | | | | | | | | | | (#32179) backport #32144 This PR fixes javascript errors when an anonymous user visits the migration page. It also makes task view checking more restrictive. The router moved from `/user/task/{id}/status` to `/username/reponame/-/migrate/status` because it's a migrate status. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix bug in getting merged pull request by commit (#32079) (#32117)Zettat1232024-09-251-1/+1
| | | | | Backport #32079 Fix #32027
* Allow set branch protection in an empty repository (#32095) (#32119)Giteabot2024-09-242-17/+13
| | | | | | | Backport #32095 by @lunny Resolve #32093 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix Bug in Issue/pulls list (#32081) (#32115)Giteabot2024-09-241-2/+2
|
* Fix rename branch permission bug (#32066) (#32108)Giteabot2024-09-221-1/+1
| | | | | | | | | | Backport #32066 by @lunny The previous implementation requires admin permission to rename branches which should be write permission. Fix #31993 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Use forum.gitea.com instead of old URL (#31989) (#31992)Giteabot2024-09-071-2/+2
| | | | | Backport #31989 by @lunny Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* fix the component of access token list not mounted (#31824) (#31868)sillyguodong2024-08-191-7/+7
|
* Fixes for unreachable project issues when transfer repository from ↡Giteabot2024-08-141-1/+2
| | | | | | | | | | | | | | | | | organization (#31770) (#31828) Backport #31770 by @emrebdr When transferring repositories that have issues linked to a project board to another organization, the issues remain associated with the original project board. This causes the columns in the project board to become bugged, making it difficult to move other issues in or out of the affected columns. As a solution, I removed the issue relations since the other organization does not have this project table. Fix for #31538 Co-authored-by: Edip Emre Bodur <emrebdr29@gmail.com> Co-authored-by: Jason Song <i@wolfogre.com>
* Show lock owner instead of repo owner on LFS setting page (#31788) (#31817)Giteabot2024-08-111-3/+3
| | | | | | | | | | | | | | | | | Backport #31788 by @wolfogre Fix #31784. Before: <img width="1648" alt="image" src="https://github.com/user-attachments/assets/03f32545-4a85-42ed-bafc-2b193a5d8023"> After: <img width="1653" alt="image" src="https://github.com/user-attachments/assets/e5bcaf93-49cb-421f-aac1-5122bc488b02"> Co-authored-by: Jason Song <i@wolfogre.com>
* Fix the display of project type for deleted projects (#31732) (#31734)Giteabot2024-07-301-4/+10
| | | | | | | | | | Backport #31732 by @yp05327 Fix: #31727 After: ![image](https://github.com/user-attachments/assets/1dfb4b31-3bd6-47f7-b126-650f33f453e2) Co-authored-by: yp05327 <576951401@qq.com>
* Fix API endpoint for registration-token (#31722) (#31728)Giteabot2024-07-291-33/+33
| | | | | | | Backport #31722 by @wolfogre Partially fix #31707. Related to #30656. Co-authored-by: Jason Song <i@wolfogre.com>
* use correct l10n string (#31487) (#31490)Giteabot2024-06-261-1/+1
| | | | | Backport #31487 by CyberFlameGO Co-authored-by: CyberFlame <cyberflameu@gmail.com>
* Fix the link for .git-blame-ignore-revs bypass (#31432) (#31442)Giteabot2024-06-211-1/+1
| | | | | Backport #31432 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix the wrong line number in the diff view page when expanded twice. ↡Giteabot2024-06-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | (#31431) (#31440) Backport #31431 by @charles7668 close #31149 The problem is caused by the `data-query=` string affecting the parsing of the `last_left` parameter. When the page is first rendered, `data-query=` does not exist. However, after clicking expand, the returned HTML contains this string, causing the line numbers to start from 1 upon expanding a second time. before fix ![εœ–η‰‡](https://github.com/go-gitea/gitea/assets/30816317/36842bde-cc30-43ba-91b0-c60a50a6dc0f) after fix ![εœ–η‰‡](https://github.com/go-gitea/gitea/assets/30816317/b73d7e40-ec01-48ae-9992-09c19ee477ad) Co-authored-by: charles <30816317+charles7668@users.noreply.github.com>
* Fix double border in system status table (#31363) (#31401)Giteabot2024-06-181-3/+5
| | | | | | Backport #31363 by silverwind Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix missing images in editor preview due to wrong links (#31299) (#31393)wxiaoguang2024-06-171-2/+2
| | | | | | | | | | | | Backport #31299 Parse base path and tree path so that media links can be correctly created with /media/. Resolves #31294 --------- Co-authored-by: Brecht Van Lommel <brecht@blender.org>
* Fixed incorrect localization `explorer.go` (#31348) (#31350)Giteabot2024-06-131-5/+1
| | | | | | | Backport #31348 by @kerwin612 see: https://github.com/go-gitea/gitea/pull/29701/files#r1637325139 Co-authored-by: Kerwin Bryant <kerwin612@qq.com>
* Fix navbar `+` menu flashing on page load (#31281) (#31342)Giteabot2024-06-122-16/+14
| | | | | | Backport #31281 by silverwind Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix some URLs whose sub-path is missing (#31289) (#31292)Giteabot2024-06-073-3/+3
| | | | | | | Backport #31289 by wxiaoguang Fix #31285 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Optimize repo-list layout to enhance visual experience (#31272) (#31276)Giteabot2024-06-071-6/+6
| | | | | | | | | | | | | | | | Backport #31272 by @kerwin612 before: ![1717655078227](https://github.com/go-gitea/gitea/assets/3371163/4d564f96-c2f8-46b1-996f-6cc7abb940ef) ***The problem was that the icon and text were not on a horizontal line, and the horizontal was not centered;*** after: ![1717655094071](https://github.com/go-gitea/gitea/assets/3371163/b11797f6-05f8-486c-b5fd-df89d0cbdcfd) Co-authored-by: Kerwin Bryant <kerwin612@qq.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* fixed the dropdown menu for the top New button to expand to the left ↡Giteabot2024-06-071-1/+1
| | | | | | | | | | | | | | | (#31273) (#31275) Backport #31273 by @kerwin612 before: ![1717660314025](https://github.com/go-gitea/gitea/assets/3371163/17ae7a48-31c5-4c71-b285-f65d9106bf86) after: ![1717660674763](https://github.com/go-gitea/gitea/assets/3371163/85f847ac-a044-4695-9004-26e6485288c6) Co-authored-by: Kerwin Bryant <kerwin612@qq.com>
* Fix Activity Page Contributors dropdown (#31264) (#31269)Giteabot2024-06-061-0/+1
| | | | | | | Backport #31264 by wxiaoguang Fix #31261 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Optimize runner-tags layout to enhance visual experience (#31258) (#31263)Giteabot2024-06-061-1/+1
| | | | | | | | Backport #31258 by @kerwin612 ![image](https://github.com/go-gitea/gitea/assets/3371163/b8199005-94f2-45be-8ca9-4fa1b3f221b2) Co-authored-by: Kerwin Bryant <kerwin612@qq.com>
* Fix overflow on push notification (#31179) (#31238)Giteabot2024-06-041-2/+2
| | | | | | | | | | Backport #31179 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/30063 <img width="1301" alt="Screenshot 2024-05-30 at 14 43 24" src="https://github.com/go-gitea/gitea/assets/115237/00443af0-088d-49a5-be9e-8c9adcc2c01d"> Co-authored-by: silverwind <me@silverwind.io>
* Remove .segment from .project-column (#31204) (#31239)Giteabot2024-06-041-1/+1
| | | | | | | | | | Backport #31204 by @silverwind Using `.segment` on the project columns is a major abuse of that class, so remove it and instead set the border-radius directly on it. Fixes: https://github.com/go-gitea/gitea/issues/31129 Co-authored-by: silverwind <me@silverwind.io>
* Fix overflow on notifications (#31178) (#31237)Giteabot2024-06-041-2/+2
| | | | | | | | | | Backport #31178 by @silverwind Fixes https://github.com/go-gitea/gitea/issues/31170. <img width="1312" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/627711ed-93ca-4be6-b958-10d673ae9517"> Co-authored-by: silverwind <me@silverwind.io>
* Fix overflow in issue card (#31203) (#31225)Giteabot2024-06-031-1/+1
| | | | | | | | | | | | | | Backport #31203 by @silverwind Before: <img width="373" alt="Screenshot 2024-06-01 at 01 31 26" src="https://github.com/go-gitea/gitea/assets/115237/82a210f2-c82e-4b7e-ac43-e70e46fa1186"> After: <img width="376" alt="Screenshot 2024-06-01 at 01 31 32" src="https://github.com/go-gitea/gitea/assets/115237/82d1b9f7-4fad-47bd-948a-04e1e7e006e6"> Co-authored-by: silverwind <me@silverwind.io>
* Fix agit checkout command line hint & fix ShowMergeInstructions checking ↡Giteabot2024-06-031-2/+2
| | | | | | | | | | | | | | | | | (#31219) (#31222) Backport #31219 by @lunny Fix #31135 Before <img width="527" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/60c07b55-3db2-4a9a-98f1-0eb72d149df2"> After <img width="664" alt="图片" src="https://github.com/go-gitea/gitea/assets/81045/0670ff5d-9e0b-47ac-aba4-9db9131de3b3"> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Use vertical layout for multiple code expander buttons (#31122) (#31152)Giteabot2024-05-293-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #31122 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/31068 - Now it only does a single call to `GetExpandDirection` per line instead of multiples. - Exposed `data-expand-direction` to frontend so it can correctly size the buttons (it's a pain to do in tables). <img width="142" alt="Screenshot 2024-05-27 at 20 44 56" src="https://github.com/go-gitea/gitea/assets/115237/8b0b45a6-8e50-4081-8822-5e0775d8d941"> <img width="142" alt="Screenshot 2024-05-27 at 20 44 51" src="https://github.com/go-gitea/gitea/assets/115237/b7ba2c57-8f55-4e9f-9606-c96d16b77892"> <img width="132" alt="Screenshot 2024-05-27 at 20 44 46" src="https://github.com/go-gitea/gitea/assets/115237/0e838fb8-5e8c-4250-9843-a68b88d5418b"> <img width="80" alt="Screenshot 2024-05-27 at 20 44 33" src="https://github.com/go-gitea/gitea/assets/115237/da6c7f83-c160-4389-8ab2-889d0568cbe8"> <img width="80" alt="Screenshot 2024-05-27 at 20 44 26" src="https://github.com/go-gitea/gitea/assets/115237/cdb490b2-5040-484a-92e5-46fc5e37c199"> <img width="78" alt="Screenshot 2024-05-27 at 20 44 20" src="https://github.com/go-gitea/gitea/assets/115237/d2978ab0-764e-41ff-922c-25f8fe749f28"> Would backport as trivial enhancement. Co-authored-by: silverwind <me@silverwind.io>
* Improve mobile review ui (#31091) (#31136)Giteabot2024-05-282-5/+5
| | | | | | | | | | | | | | | | | | Backport #31091 by @silverwind Fixes: https://github.com/go-gitea/gitea/issues/31071 Not perfect but much better than before. Before: Overflows, sticky not working, filename unreadable: <img width="506" alt="Screenshot 2024-05-27 at 02 02 40" src="https://github.com/go-gitea/gitea/assets/115237/a06b1edf-dece-4402-98c2-68670fca265f"> After: <img width="457" alt="Screenshot 2024-05-27 at 01 59 06" src="https://github.com/go-gitea/gitea/assets/115237/2a282c96-e719-4554-b418-81963ae6269c"> Co-authored-by: silverwind <me@silverwind.io>
* Prevent tab shifting, remove extra margin on fluid pages (#31090) (#31099)Giteabot2024-05-275-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport #31090 by @silverwind 1. Extend concept of https://github.com/go-gitea/gitea/pull/29831 to all tabular menus, there were only three left that weren't already `<overflow-menu>`. <img width="634" alt="Screenshot 2024-05-27 at 00 42 16" src="https://github.com/go-gitea/gitea/assets/115237/d9a7e219-d05e-40a1-9e93-777f9a8a90dd"> <img width="965" alt="Screenshot 2024-05-27 at 00 29 32" src="https://github.com/go-gitea/gitea/assets/115237/e6ed71b1-11fb-4a74-9adb-af4524286cff"> 2. Remove extra padding on `fluid padded` container like for example PR diff view. The page margin is already correctly sized via `.ui.container`, so this was just extraneous padding that looked ugly. Before: <img width="1351" alt="Screenshot 2024-05-27 at 00 45 11" src="https://github.com/go-gitea/gitea/assets/115237/4b45fd11-b1b2-4fbb-a618-26eb22be9472"> After: <img width="1344" alt="Screenshot 2024-05-27 at 00 45 22" src="https://github.com/go-gitea/gitea/assets/115237/d09593eb-6c7f-45e7-85b6-f0050047004b"> 3. Replace `gt-word-break` with `tw-break-anywhere` in issue-title, fixing overflow. Before: <img width="1333" alt="Screenshot 2024-05-27 at 00 50 14" src="https://github.com/go-gitea/gitea/assets/115237/64d15d04-b456-401e-a972-df636965f0eb"> After: <img width="1316" alt="Screenshot 2024-05-27 at 00 50 26" src="https://github.com/go-gitea/gitea/assets/115237/ed1ce830-1408-414b-8263-eeaf773f52c8"> Co-authored-by: silverwind <me@silverwind.io>
* Make gitea webhooks openproject compatible (#28435) (#31081)Giteabot2024-05-261-0/+34
| | | | | Backport #28435 by Chief-Detektor Co-authored-by: AndrΓ© Rosenhammer <andre.rosenhammer@gmail.com>
* Support setting the `default` attribute of the issue template dropdown field ↡Giteabot2024-05-241-1/+1
| | | | | | | | | | | | | | (#31045) (#31059) Backport #31045 by @Zettat123 Fix #31044 According to [GitHub issue template documentation](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema#attributes-for-dropdown), the `default` attribute can be used to specify the preselected option for a dropdown field. Co-authored-by: Zettat123 <zettat123@gmail.com>
* Fix wrong display of recently pushed notification (#25812) (#31043)yp053272024-05-231-2/+2
| | | | | | | | | | | Backport #25812 ~~ps: removed some new codes in `tests/integration/pull_merge_test.go`~~ --------- Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Don't include link of deleted branch when listing branches (#31028) (#31032)Giteabot2024-05-211-1/+1
| | | | | | | | | | | | | | | | Backport #31028 by @kemzeb From https://github.com/go-gitea/gitea/issues/31018#issuecomment-2119622680. This commit removes the link to a deleted branch name because it returns a 404 while it is in this deleted state. GitHub also throws a 404 when navigating to a branch link that was just deleted, but this deleted branch is removed from the branch list after a page refresh. Since with Gitea this deleted branch would be kept around for quite some time (well, until the "cleanup deleted branches" cron job begins), it makes sense to not have this as a link that users can navigate to. Co-authored-by: Kemal Zebari <60799661+kemzeb@users.noreply.github.com>
* Return `access_denied` error when an OAuth2 request is denied (#30974) (#31029)Giteabot2024-05-201-2/+2
| | | | | | Backport #30974 by Zettat123 Co-authored-by: Zettat123 <zettat123@gmail.com> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Fix incorrect "blob excerpt" link when comparing files (#31013) (#31026)Giteabot2024-05-202-6/+8
| | | | | Backport #31013 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Avoid 500 panic error when uploading invalid maven package file (#31014) ↡Giteabot2024-05-202-2/+9
| | | | | | | (#31027) Backport #31014 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix project column title overflow (#31011) (#31025)Giteabot2024-05-201-10/+6
| | | | | Backport #31011 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix "force private" logic (#31012) (#31021)Giteabot2024-05-2010-11/+12
| | | | | Backport #31012 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Simplify mirror repository API logic (#30963) (#31009)Giteabot2024-05-181-1/+1
| | | | | | | Backport #30963 by wxiaoguang Fix #30921 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix JS error when editing a merged PR's title (#30990) (#31001)Giteabot2024-05-171-4/+2
| | | | | | | Backport #30990 by @wxiaoguang Regression of Fix issue/PR title edit (#30858) Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>