summaryrefslogtreecommitdiffstats
path: root/options
Commit message (Collapse)AuthorAgeFilesLines
* Fix possible ui 500 if workflow's job is nil (#31092) (#31098)Giteabot2024-05-271-0/+1
| | | | | | | Backport #31092 by @lunny Fix #31087 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Avoid 500 panic error when uploading invalid maven package file (#31014) ↵Giteabot2024-05-201-0/+1
| | | | | | | (#31027) Backport #31014 by wxiaoguang Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Remove unnecessary double quotes on language file (#30977) (#30979)Giteabot2024-05-151-1/+1
| | | | | | | | Backport #30977 by @lunny The double quotes and the prefix/suffix space are unnecessary. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
* Check if reverse proxy is correctly configured (#30890) (#30935)Giteabot2024-05-101-0/+1
| | | | | | | | | Backport #30890 by wxiaoguang Follow #27011 Follow #30885 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-271-0/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-261-8/+8
|
* Improve oauth2 client "preferred username field" logic and the error ↵wxiaoguang2024-04-251-0/+1
| | | | | | | | | | | | | handling (#30622) Follow #30454 And fix #24957 When using "preferred_username", if no such field, `extractUserNameFromOAuth2` (old `getUserName`) shouldn't return an error. All other USERNAME options do not return such error. And fine tune some logic and error messages, make code more stable and more friendly to end users.
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-251-0/+2
|
* Initial support for colorblindness-friendly themes (#30625)wxiaoguang2024-04-241-0/+2
| | | | | | | Initial support for #25680 This PR only adds some simple styles from GitHub, it is big enough and it focuses on adding the necessary framework-level supports. More styles could be fine-tuned later.
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-2327-27/+0
|
* [skip ci] Updated licenses and gitignoresGiteaBot2024-04-222-0/+42
|
* Fix repo home UI when there is no repo description (#30552)wxiaoguang2024-04-211-1/+0
| | | | | | Fix #30502 by a new approach. ![image](https://github.com/go-gitea/gitea/assets/2114189/22f48bca-82d1-45cc-b1b7-ee2344b81a76)
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-211-10/+21
|
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-194-0/+165
|
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-1825-88/+0
|
* Expose fuzzy search for issues/pulls (#29701)65432024-04-181-2/+4
| | | | | | | | close #29685 --------- Signed-off-by: 6543 <6543@obermui.de> Co-authored-by: silverwind <me@silverwind.io>
* Allow everyone to read or write a wiki by a repo unit setting (#30495)wxiaoguang2024-04-171-0/+2
| | | | | Replace #6312 Help #5833 Wiki solution for #639
* Correct locale string rendering (#30522)wxiaoguang2024-04-171-4/+4
| | | | | | | | Since #29165, the translations are rendered as HTML in templates, so: 1. if the translation does contain `<>`, use `TrString` 2. use `{dummy}` instead of `<dummy>` as much as possible Co-authored-by: Giteabot <teabot@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-171-0/+41
|
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-161-0/+20
|
* [skip ci] Updated licenses and gitignoresGiteaBot2024-04-153-0/+47
|
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-111-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-091-3/+44
|
* [skip ci] Updated licenses and gitignoresGiteaBot2024-04-0811-63/+64
|
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-071-10/+10
|
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-052-2/+116
|
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-041-0/+2
|
* Render embedded code preview by permlink in markdown (#30234)wxiaoguang2024-04-021-0/+2
| | | | | The permlink in markdown will be rendered as a code preview block, like GitHub Co-authored-by: silverwind <me@silverwind.io>
* [skip ci] Updated translations via CrowdinGiteaBot2024-04-0222-22/+3
|
* [skip ci] Updated licenses and gitignoresGiteaBot2024-04-013-0/+35
|
* Do not allow different storage configurations to point to the same directory ↵wxiaoguang2024-03-311-1/+3
| | | | | (#30169) Replace #29171
* [skip ci] Updated translations via CrowdinGiteaBot2024-03-311-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2024-03-3027-1049/+888
|
* Add default board to new projects, remove uncategorized pseudo-board (#29874)Denys Konovalov2024-03-271-4/+1
| | | | | | | | | | | | | | | | | | On creation of an empty project (no template) a default board will be created instead of falling back to the uneditable pseudo-board. Every project now has to have exactly one default boards. As a consequence, you cannot unset a board as default, instead you have to set another board as default. Existing projects will be modified using a cron job, additionally this check will run every midnight by default. Deleting the default board is not allowed, you have to set another board as default to do it. Fixes #29873 Fixes #14679 along the way Fixes #29853 Co-authored-by: delvh <dev.lh@web.de>
* Support repo code search without setting up an indexer (#29998)wxiaoguang2024-03-241-0/+1
| | | | | | | | | | | | | | | | | By using git's ability, end users (especially small instance users) do not need to enable the indexer, they could also benefit from the code searching feature. Fix #29996 ![image](https://github.com/go-gitea/gitea/assets/2114189/11b7e458-88a4-480d-b4d7-72ee59406dd1) ![image](https://github.com/go-gitea/gitea/assets/2114189/0fe777d5-c95c-4288-a818-0427680805b6) --------- Co-authored-by: silverwind <me@silverwind.io>
* Fix bugs in rerunning jobs (#29955)Zettat1232024-03-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix #28761 Fix #27884 Fix #28093 ## Changes ### Rerun all jobs When rerun all jobs, status of the jobs with `needs` will be set to `blocked` instead of `waiting`. Therefore, these jobs will not run until the required jobs are completed. ### Rerun a single job When a single job is rerun, its dependents should also be rerun, just like GitHub does (https://github.com/go-gitea/gitea/issues/28761#issuecomment-2008620820). In this case, only the specified job will be set to `waiting`, its dependents will be set to `blocked` to wait the job. ### Show warning if every job has `needs` If every job in a workflow has `needs`, all jobs will be blocked and no job can be run. So I add a warning message. <img src="https://github.com/go-gitea/gitea/assets/15528715/88f43511-2360-465d-be96-ee92b57ff67b" width="480px" />
* Refactor repo header/list (#29969)wxiaoguang2024-03-211-3/+1
| | | | 1. Use general "mobile-only" and "not-mobile" CSS styles, remove some`@media (max-width: 767.98px)` tricks 2. Use `CountFmt` for repo list, just like the repo header (and it matches GitHub, to avoid big numbers bloat the page)
* Update register application URL for GitLab (#29959)yp053272024-03-211-1/+1
| | | | | | Fix #26593 The old URL was updated 7 years ago. Maybe no need to hold it any more. ![image](https://github.com/go-gitea/gitea/assets/18380374/95a0b364-832b-4f10-800e-21845d64df1a)
* Refactor StringsToInt64s (#29967)wxiaoguang2024-03-211-0/+1
| | | And close #27176
* Editor error message misleading due to re-used key. (#29859)buckybytes2024-03-181-0/+2
| | | | | | | | | | | | | | | The error message: `editor.file_changed_while_editing = The file contents have changed since you started editing. <a target="_blank" rel="noopener noreferrer" href="%s">Click here</a> to see them or <strong>Commit Changes again</strong> to overwrite them.` Is re-used in inappropriate contexts. The link in the key goes to a 404 when the key is used in a situation where the file contents have not changed. Added two new keys to differentiate commit id mismatch and push out of date conditions.
* [skip ci] Updated licenses and gitignoresGiteaBot2024-03-181-0/+3
|
* Improve branch select list ui in go templates (#29729)HEREYUA2024-03-151-1/+2
| | | | | | | | | | | | | | | | | | Relate:[#27417](https://github.com/go-gitea/gitea/issues/27471) Reference: [#26631](https://github.com/go-gitea/gitea/pull/26631) Before ![image](https://github.com/go-gitea/gitea/assets/37935145/88ca8da5-25dd-4f60-bea8-a80107f19cc5) After ![image](https://github.com/go-gitea/gitea/assets/37935145/3cb180dc-1331-43e9-8633-be5e288401e8) --------- Co-authored-by: silverwind <me@silverwind.io>
* Add `<overflow-menu>`, rename webcomponents (#29400)silverwind2024-03-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Add `<overflow-menu>` web component 2. Rename `<gitea-origin-url>` to `<origin-url>` and make filenames match. <img width="439" alt="image" src="https://github.com/go-gitea/gitea/assets/115237/2fbe4ca4-110b-4ad2-8e17-c1e116ccbd74"> <img width="444" alt="Screenshot 2024-03-02 at 21 36 52" src="https://github.com/go-gitea/gitea/assets/115237/aa8f786e-dc8c-4030-b12d-7cfb74bdfd6e"> <img width="537" alt="Screenshot 2024-03-03 at 03 05 06" src="https://github.com/go-gitea/gitea/assets/115237/fddd50aa-adf1-4b4b-bd7f-caf30c7b2245"> ![image](https://github.com/go-gitea/gitea/assets/115237/0f43770c-834c-4a05-8e3d-d30eb8653786) ![image](https://github.com/go-gitea/gitea/assets/115237/4b4c6bd7-843f-4f49-808f-6b3aed5e9f9a) TODO: - [x] Check if removal of `requestAnimationFrame` is possible to avoid flash of content. Likely needs a `MutationObserver`. - [x] Hide tippy when button is removed from DOM. - [x] ~~Implement right-aligned items (https://github.com/go-gitea/gitea/pull/28976)~~. Not going to do it. - [x] Clean up CSS so base element has no background and add background via tailwind instead. - [x] Use it for org and user page. --------- Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Unify search boxes (#29530)Denys Konovalov2024-03-141-33/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unify all but a few search boxes to use uniform style, uniform translations and shared templates where possible. Remove a few duplicated search templates, e. g. code search. <details><summary>Example after screenshots:</summary> ![grafik](https://github.com/go-gitea/gitea/assets/47871822/e20e7d6b-c6be-4a47-b132-672766f41421) ![grafik](https://github.com/go-gitea/gitea/assets/47871822/d5b11b9c-c12f-4a29-8fb0-24e5aa511d18) ![grafik](https://github.com/go-gitea/gitea/assets/47871822/d86bb444-36c7-426d-9cf1-c634963dffb1) ![grafik](https://github.com/go-gitea/gitea/assets/47871822/a76c0319-0518-484a-a840-563d02b61198) </details> Also includes #29700 Co-authored-by: 6543 <6543@obermui.de> --------- Co-authored-by: 6543 <m.huber@kithara.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
* Fix incorrect locale Tr for gpg command (#29754)wxiaoguang2024-03-131-1/+0
|
* Add a warning for disallowed email domains (#29658)Zettat1232024-03-111-0/+1
| | | | | | | | | | | | | Resolve #29660 Follow #29522 and #29609 Add a warning for disallowed email domains when admins manually add/edit users. Thanks @yp05327 for the [comment](https://github.com/go-gitea/gitea/pull/29605#issuecomment-1980105119) ![image](https://github.com/go-gitea/gitea/assets/15528715/6737b221-a3a2-4180-9ef8-b846c10f96e0)
* Fix 500 when deleting account with incorrect password or unsupported login ↵Lunny Xiao2024-03-081-0/+2
| | | | | | | | | type (#29579) Fix #26210 --------- Co-authored-by: Jason Song <i@wolfogre.com>
* Detect broken git hooks (#29494)Jason Song2024-03-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Detect broken git hooks by checking if the commit id of branches in DB is the same with the git repo. It can help #29338 #28277 and maybe more issues. Users could complain about actions, webhooks, and activities not working, but they were not aware that it is caused by broken git hooks unless they could see a warning. <img width="1348" alt="image" src="https://github.com/go-gitea/gitea/assets/9418365/2b92a46d-7f1d-4115-bef4-9f970bd695da"> It should be merged after #29493. Otherwise, users could see a ephemeral warning after committing and opening the repo home page immediately. And it also waits for #29495, since the doc link (the anchor part) will be updated. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
* Make wiki default branch name changable (#29603)wxiaoguang2024-03-061-0/+2
| | | | | | | | | Fix #29000 Fix #28685 Fix #18568 Related: #27497 And by the way fix #24036, add a Cancel button there (one line)
* [skip ci] Updated translations via CrowdinGiteaBot2024-03-051-4/+7
|