df9d1fe8c5
Trivial fixes ( #33103 )
...
1. remove `gock` dependency, it is not needed
2. fix a regression from org private profile readme
2025-01-04 22:25:50 +00:00
3d544a3ad3
Fix empty git repo handling logic ( #33101 )
...
cron-translations / crowdin-pull (push) Has been skipped
cron-licenses / cron-licenses (push) Has been skipped
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
Fix #33092
2025-01-04 18:47:24 +08:00
68972a9947
Clean up legacy form CSS styles ( #33081 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2025-01-03 04:01:19 +00:00
9ac536a904
Fix "stop time tracking button" on navbar ( #33084 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Fix #33083
By the way (something I was working on):
1. relax color/background-color for more markup elements
2. fix a command line sentence error
2025-01-03 04:01:05 +08:00
45973a100b
Fix bleve fuzziness search ( #33078 )
...
Close #31565
2025-01-03 00:32:02 +08:00
85c756e279
Refactor pull-request compare&create page ( #33071 )
...
The old code is unnecessarily complex.
2025-01-02 01:16:09 +08:00
d030cace1a
feat: link to nuget dependencies ( #26554 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
Add links to dependencies and their versions, as done in nuget site.
Makes it easier to use.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-01 19:07:10 +08:00
2564c15cb0
Remove some unnecessary template helpers ( #33069 )
...
DisableGitHooks and DisableImportLocal are only used when editing a
user, so only set them in `editUserCommon`
2025-01-01 18:02:34 +08:00
57eb9d0b64
Inherit submodules from template repository content ( #16237 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Fix #10316
---------
Signed-off-by: Steffen Schröter <steffen@vexar.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2025-01-01 02:55:13 +00:00
54bd220520
Optimize the installation page ( #32994 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-31 04:49:26 +00:00
0387195abb
[Feature] Private README.md for organization ( #32872 )
...
Implemented #29503
---------
Co-authored-by: Ben Chang <ben_chang@htc.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-31 04:22:09 +00:00
a96776b3cb
Fix review code comment avatar alignment ( #33031 )
...
Fixes #33017
Avatar should only have offset if the `Comment` has `Content` or
`Attachment` to align with the speech bubble.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-29 11:04:13 +00:00
ff96873e3e
Fix templating in pull request comparison ( #33025 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
cron-licenses / cron-licenses (push) Has been skipped
Adds test for expected behavior
Closes: https://github.com/go-gitea/gitea/issues/33013
2024-12-29 01:32:19 +00:00
64bebc9402
always show assignees on right ( #33006 )
...
### Before

### After

2024-12-29 00:30:06 +00:00
94048f3035
fix toggle commit body button ui when latest commit message is long ( #32997 )
...
#### Before

#### After

## Edit:
I found an issue on mobile view and changed the code as using flex gap


---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-29 08:04:56 +08:00
a92f5057ae
Fix and/or comment some legacy CSS problems ( #33015 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
2024-12-28 11:51:38 +00:00
3d3ece36d2
Refactor comment history and fix content edit ( #33018 )
...
And fix a regression bug for comment content editing.
Now 11 "import jquery" files left
2024-12-28 19:26:16 +08:00
079a1ffe8f
De-emphasize signed commits ( #31160 )
...
The new code structure is easier to make more improvements or
refactor, for example: change the colors to de-emphasize more, or design
some new layouts.
---------
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-28 04:18:30 +08:00
7bb7ba1b5b
Add show more
organizations icon in user's profile ( #32986 )
...
Close #32952
# ⚠️ Doc update is required


------
⚠️ This PR refuses to be cherry-picked by any forked projects without any
mentions.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-27 02:49:50 +08:00
b7260400f8
Refactor tmpl and blob_excerpt ( #32967 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
1. do not use `{{/* */}}` to remove spaces, use `{{- -}}`
2. fix "blob_excerpt" endpoint, remove the legacy fragile code: have
tested commit diff and wiki diff
2024-12-25 00:51:13 +08:00
781c6df40f
Add sub issue list support ( #32940 )
...
Just like GitHub, show issue icon/title when the issue number is in a list
2024-12-24 01:54:19 +00:00
7553ae1a57
Use env GITEA_RUNNER_REGISTRATION_TOKEN as global runner token ( #32946 )
...
Fix #23703
When Gitea starts, it reads GITEA_RUNNER_REGISTRATION_TOKEN
or GITEA_RUNNER_REGISTRATION_TOKEN_FILE to add registration token.
2024-12-23 09:59:16 +00:00
89f31f79fd
Fix outdated tmpl code ( #32953 )
...
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-docker-rootful (push) Has been cancelled
release-nightly / nightly-docker-rootless (push) Has been cancelled
cron-translations / crowdin-pull (push) Has been skipped
Some PRs were before tmpl ctx refactoring and used outdated code
2024-12-23 11:21:11 +08:00
6279646ee4
Add auto-expanding running actions step ( #30058 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Auto-expands the currently running action step.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-22 18:57:17 +00:00
afe314fa77
Use primary as button color ( #32949 )
...
* Fix #32871
* Fix #32948
2024-12-22 23:03:39 +08:00
4774151e53
Improve navbar: add "admin" tip, add "active" style ( #32927 )
...
By the way, remove all "tw-" patches and unused styles.
2024-12-20 16:38:56 +00:00
7580bd98c1
show warning on navigation if currently editing comment or title ( #32920 )
...
This PR fixes the issue https://github.com/go-gitea/gitea/issues/32223
Make the browser to show the confirm popup, as it does with other forms.
---------
Co-authored-by: Tim Wundenberg <tim@wundenbergs.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-20 23:39:19 +08:00
141d782c1a
Refactor repo-projects.ts ( #32892 )
...
- Remove jQuery
- Add types to all functions
- Tested all modified functionality
---------
Co-authored-by: Giteabot <teabot@gitea.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-19 08:37:12 +00:00
e4c4629465
Move RepoTransfer from models to models/repo sub package ( #32506 )
...
`RepoTransfer` now is at models, but if we want to move it into `repo`
model, it will depend on `Team`. So this PR also makes repo model depend
on org model to make it possible. Just refactor, no code change.
- [x] Move `DeleteOrganization` from `models/organization` to service
layer
- [x] Move `AccessibleTeamReposEnv` to `models/repo`
- [x] Move `RepoTransfer` from `models` to `models/repo`
- [x] Merge `getUserTeamIDs` and `GetUserTeamIDs`, Merge `GetUserTeams`
and `getUserTeams`.
- [x] Remove `Team`'s `Repos []*repo_model.Repository` to avoid dependency recycle.
2024-12-18 11:44:16 +08:00
2d7e6e9482
Fix various trivial problems ( #32861 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
1. add/improve comments to help future readers could understand the
problem more easily.
2. add an error log to LDAP with username fallback
3. use `or` instead of `Iif` for "repo/branch_dropdown" (`Iif` was a
mistake, but it doesn't really affect the UI)
4. add `tw-font-mono` style to container digest to match dockerhub
5. fix a bug in RepoBranchTagSelector: the form is not updated when
there is no click to an item
---------
Co-authored-by: delvh <dev.lh@web.de >
2024-12-17 01:15:18 +00:00
d28a4843b8
Fix incomplete Actions status aggregations ( #32859 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
fix #32857
2024-12-16 11:18:00 +08:00
276f43330c
Do not display attestation-manifest
and use short sha256 instead of full sha256 ( #32851 )
...
Related: #24973
Before:

After:

Index:
```json
{
"schemaVersion": 2,
"mediaType": "application/vnd.oci.image.index.v1+json",
"manifests": [
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:5967afffdfde104ca1459286a72346baaef8b70ac153325d7a6cd85c7734ac6e",
"size": 672,
"platform": {
"architecture": "amd64",
"os": "linux"
}
},
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:f9abfcc55320f9ff1f38eeb7dbb4bea10b29c7febfa49ccd7aab9fa02403b9f0",
"size": 672,
"platform": {
"architecture": "arm64",
"os": "linux"
}
},
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:d70ad19d00c19e40691045cbddc3e8a5a4454c31cc454d1132b13bcaf35b6d46",
"size": 566,
"annotations": {
"vnd.docker.reference.digest": "sha256:5967afffdfde104ca1459286a72346baaef8b70ac153325d7a6cd85c7734ac6e",
"vnd.docker.reference.type": "attestation-manifest"
},
"platform": {
"architecture": "unknown",
"os": "unknown"
}
},
{
"mediaType": "application/vnd.oci.image.manifest.v1+json",
"digest": "sha256:73bc233bf4eac96a404ce3e0430b698831a4ea7050c878d5f76d1d1f133751dd",
"size": 566,
"annotations": {
"vnd.docker.reference.digest": "sha256:f9abfcc55320f9ff1f38eeb7dbb4bea10b29c7febfa49ccd7aab9fa02403b9f0",
"vnd.docker.reference.type": "attestation-manifest"
},
"platform": {
"architecture": "unknown",
"os": "unknown"
}
}
]
}
```
---------
Co-authored-by: silverwind <me@silverwind.io >
2024-12-16 10:22:49 +08:00
74b06d4f5c
Repo file list enhancements ( #32835 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
1. restore background color
2. fix border radius on top/bottom and on hover
3. parent link is now full-row again, much easier to click
4. parent link now uses directory icon, matching github
5 changed grid layout to remove auto width on file name column which could get too small.
6. mobile layout now shows more of the filename.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-15 16:56:56 +00:00
df9a78cd04
Tweak repo sidebar ( #32847 )
...
Before and after:
<img width="218" alt="Screenshot 2024-12-15 at 04 53 53"
src="https://github.com/user-attachments/assets/299b1f0a-ba72-47c6-b662-a9d540d4d741 "
/>
<img width="222" alt="Screenshot 2024-12-15 at 04 53 41"
src="https://github.com/user-attachments/assets/5a2b5332-e324-4d20-82e9-21d1c850e826 "
/>
Diff without whitespace:
https://github.com/go-gitea/gitea/pull/32847/files?diff=unified&w=1
The `tw-mt-2` is fine even if the element renders empty:
<img width="387" alt="image"
src="https://github.com/user-attachments/assets/76a976e4-ba2e-48a5-9248-c361552a937a "
/>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-15 10:01:46 +00:00
9264811217
Remove translation to issue add time because the format is fixed should not be translated ( #32850 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
cron-licenses / cron-licenses (push) Has been skipped
The input content should always be `1h 2m 3s` and will be the same on
different UI languages. So the translation is wrong.
2024-12-15 07:44:13 +00:00
32059158da
Fix SSPI button visibility when SSPI is the only enabled method ( #32841 )
2024-12-15 09:41:36 +08:00
1a07ebe549
Fix overflow on org header ( #32837 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2024-12-14 06:50:12 +00:00
5bc030efa2
Fix various UI bugs ( #32821 )
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
cron-translations / crowdin-pull (push) Has been skipped
2024-12-13 01:45:32 -05:00
30008fcfcf
Fix bug of branch/tag selector in the issue sidebar ( #32744 )
...
Fix : #32731
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-13 00:45:06 +00:00
6370d2fb93
Detect whether action view branch was deleted ( #32764 )
...
Fix #32761

2024-12-12 19:28:23 +00:00
c9487a755b
Add "n commits" link to contributors in contributors graph page ( #32799 )
...
Fixes Issue #29365 and inherit PR #29429
- I should extend the #29429 fork but the fork is not synced, so I
created another PR.
- Use `silenced` class for the link, as in #29847
---------
Co-authored-by: Ben Chang <ben_chang@htc.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-12 19:02:54 +00:00
00e2b339b6
Fix "unicode escape" JS error ( #32806 )
...
<details>




</details>
---------
Co-authored-by: silverwind <me@silverwind.io >
2024-12-12 18:37:44 +00:00
01b1896bf5
Implement update branch API ( #32433 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m28s
release-nightly / nightly-docker-rootless (push) Failing after 5m26s
cron-translations / crowdin-pull (push) Has been skipped
Resolves #22526 .
Builds upon #23061 .
---------
Co-authored-by: sillyguodong <33891828+sillyguodong@users.noreply.github.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-12 05:02:35 +00:00
4814f43af7
Fix repo home file list ( #32788 )
...
1. use grid instead of table, completely drop "ui table" from that list
2. move some "commit sign" related styles into a new file by the way (no
change) because I need to figure out where `#repo-files-table` is used.
3. move legacy "branch/tag selector" related code into repo-legacy.ts,
now there are 13 `import $` files left.
2024-12-11 23:54:42 +08:00
18061af490
Rearrange Clone Panel ( #31142 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m30s
release-nightly / nightly-docker-rootless (push) Failing after 5m25s
Rearrange the clone panel to use less horizontal space.
The following changes have been made to achieve this:
- Moved everything into the dropdown menu
- Moved the HTTPS/SSH Switch to a separate line
- Moved the "Clone in VS Code"-Button up and added a divider
- Named the dropdown button "Code", added appropriate icon
---------
Co-authored-by: techknowlogick <techknowlogick@gitea.com >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2024-12-11 21:54:30 +08:00
e619384098
Add label/author/assignee filters to the user/org home issue list ( #32779 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m28s
release-nightly / nightly-docker-rootless (push) Failing after 5m29s
cron-translations / crowdin-pull (push) Has been skipped
Replace #26661 , fix #25979
Not perfect, but usable and much better than before. Since it is quite
complex, I am not quite sure whether there would be any regression, if
any, I will fix in first time.
I have tested the related pages many times: issue list, milestone issue
list, project view, user issue list, org issue list.
2024-12-11 06:33:24 +00:00
8f271c6036
Fix wiki ui ( #32781 )
...
Fix #32774
2024-12-10 11:41:44 -05:00
90d20be541
Refactor issue filter (labels, poster, assignee) ( #32771 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m29s
release-nightly / nightly-docker-rootless (push) Failing after 5m26s
Rewrite a lot of legacy strange code, remove duplicate code, remove
jquery, and make these filters reusable.
Let's forget the old code, new code affects:
* issue list open/close switch
* issue list filter (label, author, assignee)
* milestone list open/close switch
* milestone issue list filter (label, author, assignee)
* project view (label, assignee)
2024-12-10 11:38:22 +08:00
5675efb3e0
Fix duplicate dropdown dividers ( #32760 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m34s
release-nightly / nightly-docker-rootless (push) Failing after 5m26s
cron-translations / crowdin-pull (push) Has been skipped
Fix #27466
The problem is that any item in the menu could be hidden, pure CSS won't
work, and dropdown's builtin "hideDividers" doesn't work with our "scope
dividers". The newly introduced "archived" label makes the dividers
regression more.
2024-12-09 07:54:59 +00:00
c986718965
Fix repo home row-right grow ( #32763 )
...
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Failing after 5m27s
release-nightly / nightly-docker-rootless (push) Failing after 5m25s
Fix #32753
2024-12-09 00:16:32 +08:00