aboutsummaryrefslogtreecommitdiffstats
path: root/templates
Commit message (Collapse)AuthorAgeFilesLines
* Fix some missed GitHeadRefName when renaming (#35102)Lunny Xiao6 days1-1/+1
|
* Send email on Workflow Run Success/Failure (#34982)NorthRealm7 days4-0/+82
| | | | | | | | | | | | | | | Closes #23725 ![1](https://github.com/user-attachments/assets/9bfa76ea-8c45-4155-a5d4-dc2f0667faa8) ![2](https://github.com/user-attachments/assets/49be7402-e5d5-486e-a1c2-8d3222540b13) /claim #23725 --------- Signed-off-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: ChristopherHX <christopher.homberger@web.de>
* Use monospace font in PR command line instructions (#35074)silverwind8 days1-2/+2
| | | | | | | | | | | | | | | Before: <img width="878" height="426" alt="Screenshot 2025-07-14 at 17 17 11" src="https://github.com/user-attachments/assets/6e27acb9-bad5-4811-b7b1-5418f0ef12eb" /> After: <img width="878" height="429" alt="Screenshot 2025-07-14 at 17 17 22" src="https://github.com/user-attachments/assets/b0bd2bfa-e4e2-492a-9c08-66607343a459" /> Co-authored-by: Giteabot <teabot@gitea.io>
* Improve submodule relative path handling (#35056)wxiaoguang9 days1-1/+1
| | | | | | | Fix #35054 --------- Co-authored-by: Giteabot <teabot@gitea.io>
* UI: add hover background to table rows in user and repo admin page (#35072)Gary Wang9 days2-2/+2
|
* Refactor view issue & comment list styles (#35061)wxiaoguang10 days9-68/+68
| | | Fix #35060
* Add Notifications section in User Settings (#35008)NorthRealm12 days3-27/+41
| | | | | | | | Related: #34982 --------- Signed-off-by: NorthRealm <155140859+NorthRealm@users.noreply.github.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix git commit committer parsing and add some tests (#35007)Lunny Xiao12 days2-2/+2
| | | | | | | | * Fix #34991 * Fix #34882 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor OpenIDConnect to support SSH/FullName sync (#34978)wxiaoguang12 days2-4/+27
| | | | | * Fix #26585 * Fix #28327 * Fix #34932
* Also display "recently pushed branch" alert on PR view (#35001)Naxdy12 days4-8/+16
| | | | | | | | | | | This commit adds the "You recently pushed to branch X" alert also to PR overview, as opposed to only the repository's home page. GitHub also shows this alert on the PR list, as well as the home page. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
* Fix ListWorkflowRuns OpenAPI response model. (#35026)Scion13 days1-1/+1
| | | | | | | | | Change the OpenAPI response of `ListWorkflowRuns` to `WorkflowRunsList` like it is supposed to be. --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Partially refresh notifications list (#35010)Anbraten13 days1-101/+73
| | | | | | | | | This PR prevents full reloads for the notifications list when changing a notifications status (read, unread, pinned). --------- Co-authored-by: Anton Bracke <anton.bracke@fastleansmart.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix various problems (#35012)wxiaoguang13 days4-10/+10
| | | | | * Fix #35011 * Fix incorrect log message for "Protocol" * Remove unnecessary styles, fix "comment-header" wrap, fix label height
* Fix the response format for `actions/workflows`. (#35009)Scion14 days1-4/+20
| | | | | | | | This PR fixes the response format for the OpenAPI Spec of `ActionsListRepositoryWorkflows`. It was specified in the OpenAPI spec as returning a `[]*ActionWorkflow`, but it actually should return a `api.ActionWorkflowResponse`. The test already expects an `api.ActionWorkflowResponse` like expected.
* Refactor mail template and support preview (#34990)wxiaoguang2025-07-093-0/+31
|
* Fix bug when displaying git user avatar in commits list (#35003)Lunny Xiao2025-07-081-1/+1
| | | | | | | A quick fix for #34991 `ValidateCommitsWithEmails` will create a fake user for a git commit user with a related Gitea user. The UI should not display a link for such users.
* Refactor time tracker UI (#34983)wxiaoguang2025-07-083-57/+50
| | | | | | | | | | Although we decided to "reduce the button amount" on the side bar, not only one user reported that the "time tracker dropdown" is not easy to use. So the best we can do at the moment is: move the buttons to the sidebar again. Fix #34979
* Improve project & label color picker and image scroll (#34971)wxiaoguang2025-07-063-21/+26
| | | | Fix #34609 Fix #34967
* Refactor webhook and fix feishu/lark secret (#34961)wxiaoguang2025-07-0619-71/+92
|
* Improve OAuth2 provider (correct Issuer, respect ENABLED) (#34966)wxiaoguang2025-07-063-11/+11
| | | | | | | | 1. Make "Issuer" strictly follow the spec (see comment) 2. Make "/.well-known/openid-configuration" respond 404 if the OAuth2 provider is not enabled. Then by the way, remove the JSEscape template helper because it is not needed any more.
* Merge index.js (#34963)wxiaoguang2025-07-062-8/+2
| | | Fix #34960
* Refactor "delete-button" to "link-action" (#34962)wxiaoguang2025-07-0610-94/+58
|
* Refactor some trivial problems (#34959)wxiaoguang2025-07-053-3/+3
| | | | | | | 1. make our "route group pattern match" also update chi's RoutePattern 2. fix incorrect "NotFound" call in conda package 3. make ".flex-item .flex-item-main" has a general gap, then no need to use `tw` tricks 4. improve the "test webhook" UI
* Fix git graph page (#34948)wxiaoguang2025-07-045-35/+27
| | | fix #34946
* Refactor head navbar icons (#34922)wxiaoguang2025-07-044-51/+30
| | | | Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Giteabot <teabot@gitea.io>
* Support getting last commit message using contents-ext API (#34904)RickyMa2025-07-031-2/+6
| | | | | | | | Fix #34870 Fix #34929 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Adds tooltip on branch commit counts (#34869)Aaron Meese2025-07-011-3/+9
| | | | | | | | | | | Adds a tooltip to the commit counts when comparing branches, making it easier for novice users to understand what the numbers mean. Fixes #34867. --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix PR toggle WIP (#34920)wxiaoguang2025-07-012-2/+2
| | | | | | | Fix #34919 --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
* Follow file symlinks in the UI to their target (#28835)delvh2025-07-011-0/+3
| | | | | | | | | | Symlinks are followed when you click on a link next to an entry, either until a file has been found or until we know that the link is dead. When the link cannot be accessed, we fall back to the current behavior of showing the document containing the target. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix issue filter (#34914)wxiaoguang2025-07-012-2/+2
| | | | | `0` is zero value and won't be put into query parameter by QueryBuild Fix #34913
* Add support for 3D/CAD file formats preview (#34794)Kerwin Bryant2025-06-304-42/+52
| | | | | | | Fix #34775 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add a `login`/`login-name`/`username` disambiguation to affected endpoint ↵AlexMaryW2025-06-291-55/+64
| | | | | | | | | | | | parameters and response/request models (#34901) Issue: [link](https://github.com/go-gitea/gitea/issues/9637) Changes introduced: I have clarified the problematic terms (`login`, `login_name`, and `username`) in all affected endpoints. The changes were made to relevant: - HTTP endpoint parameters' descriptions - response/request models' fields
* Improve tags list page (#34898)wxiaoguang2025-06-301-46/+39
|
* Fix project column edit (#34890)wxiaoguang2025-06-281-2/+2
| | | Fix #34888
* Optimize flex layout of release attachment area (#34885)Kerwin Bryant2025-06-271-1/+1
| | | | | | | | | before: ![b975dce7-d5b1-43e0-b6f4-94557758e30e](https://github.com/user-attachments/assets/c33f3fd0-ce1a-457c-97fe-942b86cf09c1) after: ![682ce03c-9d2c-4b5d-9ba0-fb759fd98088](https://github.com/user-attachments/assets/55304b19-a3c3-4a91-b07a-0c9868dbe3eb)
* Improve `labels-list` rendering (#34846)silverwind2025-06-278-22/+28
| | | | | | | Make labels list use consistent gap --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix a regression when refactoring fork list (#34879)Lunny Xiao2025-06-271-1/+1
| | | Fix a regression when refactoring fork list from #34784
* Refactor "change file" API (#34855)wxiaoguang2025-06-251-11/+16
| | | | | | | | | Follow up the "editor" refactor, use the same approach to simplify code, and fix some docs & comments --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: delvh <dev.lh@web.de>
* Refactor repo contents API and add "contents-ext" API (#34822)wxiaoguang2025-06-251-2/+100
| | | See the updated swagger document for details.
* fix(issue): Replace stopwatch toggle with explicit start/stop actions (#34818)Junsik Kong2025-06-253-5/+5
| | | | | | | | | | | | | | | | This PR fixes a state de-synchronization bug with the issue stopwatch, it resolves the issue by replacing the ambiguous `/toggle` endpoint with two explicit endpoints: `/start` and `/stop`. - The "Start timer" button now exclusively calls the `/start` endpoint. - The "Stop timer" button now exclusively calls the `/stop` endpoint. This ensures the user's intent is clearly communicated to the server, eliminating the state inconsistency and fixing the bug. --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix team permissions (#34827)wxiaoguang2025-06-241-3/+23
| | | | * Fix #34793 * Fix #33456
* correct migration tab name (#34826)TheFox0x72025-06-241-1/+1
| | | | Previous version reads like we're migrating some kind of status instead of what it is - status of the migration.
* Refactor template helper (#34819)wxiaoguang2025-06-2411-12/+13
| | | | | | | | FIx abuses and remove unused code --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
* Add "Cancel workflow run" button to Actions list page (#34817)NorthRealm2025-06-222-2/+7
|
* Edit file workflow for creating a fork and proposing changes (#34240)Brecht Van Lommel2025-06-229-16/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When viewing a file that the user can't edit because they can't write to the branch, the new, upload, patch, edit and delete functionality is no longer disabled. If no user fork of the repository exists, there is now a page to create one. It will automatically create a fork with a single branch matching the one being viewed, and a unique repository name will be automatically picked. When a fork exists, but it's archived, a mirror or the user can't write code to it, there will instead be a message explaining the situation. If the usable fork exists, a message will appear at the top of the edit page explaining that the changes will be applied to a branch in the fork. The base repository branch will be pushed to a new branch to the fork, and then the edits will be applied on top. The suggestion to fork happens when accessing /_edit/, so that for example online documentation can have an "edit this page" link to the base repository that does the right thing. Also includes changes to properly report errors when trying to commit to a new branch that is protected, and when trying to commit to an existing branch when choosing the new branch option. Resolves #9017, #20882 --------- Co-authored-by: Brecht Van Lommel <brecht@blender.org> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor wiki (#34805)wxiaoguang2025-06-223-17/+15
| | | Remove unclear code
* Forks repository list page follow other repositories page (#34784)Lunny Xiao2025-06-218-24/+20
| | | | | | | | | | | | Replace #24130 Before: ![image](https://github.com/user-attachments/assets/98c39bce-bdbf-4fc1-b476-527c5139e01f) After: ![image](https://github.com/user-attachments/assets/65fef5b8-63b9-4283-b8ea-2ac2f27cb001)
* Add post-installation redirect based on admin account status (#34493)Kerwin Bryant2025-06-212-1/+4
| | | | | | | | | | | | | | | | This PR adds a feature to direct users to appropriate pages after system installation: - If no admin credentials were provided during installation, redirect to the registration page with a prominent notice about creating the first administrative account - If admin credentials were already set, redirect directly to the login page ![4d396ad132d9b57fc4f45a62117177f1](https://github.com/user-attachments/assets/3a5d8700-9194-4d3b-a862-e64c8c347932) --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Rework delete org and rename org UI (#34762)Lunny Xiao2025-06-214-129/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # What's the problem of the original implementation Renaming organization will mix with organization's information change make the operation difficult to keep consistent. This PR created a danger zone like what's repository setting. It also moved organization's `rename` and `delete` operations to this zone. The original updating repository will not change the name any more. This is also a step to extract the `updaterepository` function completely. Before: ![image](https://github.com/user-attachments/assets/d097dfdf-07be-4d79-8fcf-e78822515575) ![image](https://github.com/user-attachments/assets/42ee832c-cb44-41ec-9fe3-92a1c94747d2) After: ![image](https://github.com/user-attachments/assets/f7700ed7-f104-4302-a924-09e118f24be3) ![image](https://github.com/user-attachments/assets/4c49952a-578e-4d14-bd01-4a68c9e02412) ![image](https://github.com/user-attachments/assets/814829d3-00fe-4e87-ae05-625c129170d2) ![image](https://github.com/user-attachments/assets/b067b263-c909-4b48-b23c-73481c32d350) --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor editor (#34780)wxiaoguang2025-06-218-61/+41
| | | A complete rewrite