dfa1b6168d
Merge branch 'main' into feature/bots
2022-12-12 10:46:13 +08:00
352a50d65f
Fix sorting admin user list by last login ( #22081 )
...
Admin User Account list sort
`updated_unix` is not the same as "Last Sign-In"
2022-12-11 18:00:17 -06:00
112e425f90
fix(config): remove context on config template ( #22096 )
...
👋 Hey
I'm new around here, so I may have done some mistakes, sorry!
---
## Context
On a fresh Gitea install, when I go to the [config admin
page](http://localhost:3000/admin/config ) I had a 500 error page.
The logs:
```
2022/12/10 20:08:47 ...s/context/context.go:232:HTML() [E] [6394d93f] Render failed: template: admin/config:180:22: executing "admin/config" at <.Service.DefaultAllowOnlyContributorsToTrackTime>: DefaultAllowOnlyContributorsToTrackTime has arguments but cannot be invoked as function
2022/12/10 20:08:47 [6394d93f] router: completed GET /admin/config for [::1]:43800, 500 Internal Server Error in 5.1ms @ admin/config.go:99(admin.Config)
```
## The fix
I removed the `$.Context` on the
`.Service.DefaultAllowOnlyContributorsToTrackTime` to fix the 500 error
page happening. It could be a mistake, and I don't fully understand what
I've done!
Signed-off-by: Restray <contact@restray.org >
2022-12-11 12:06:12 +08:00
68704532c2
Rename almost all Ctx functions ( #22071 )
2022-12-10 10:46:31 +08:00
097d4e30b1
Change ID pattern of raw content container for issue ( #21966 )
...
Implement differentiation to html id for issue raw content container.
Fixes #21965
2022-12-10 00:25:32 +08:00
2779d47ad3
Optimize html templates ( #22080 )
...
Replace `active{{end}} item` with `active{{end}} item`.
2022-12-09 21:34:51 +08:00
d378a78c79
Merge branch 'main' into feature/bots
2022-12-09 16:20:28 +08:00
10ebbeca2f
chore: rename to action
2022-12-09 15:29:26 +08:00
3c59d31bc6
Add API management for issue/pull and comment attachments ( #21783 )
...
Close #14601
Fix #3690
Revive of #14601 .
Updated to current code, cleanup and added more read/write checks.
Signed-off-by: Andrew Thornton <art27@cantab.net >
Signed-off-by: Andre Bruch <ab@andrebruch.com >
Co-authored-by: zeripath <art27@cantab.net >
Co-authored-by: 6543 <6543@obermui.de >
Co-authored-by: Norwin <git@nroo.de >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2022-12-09 14:35:56 +08:00
8fb1e53ca2
Rename actions to operations on UI ( #22067 )
...
Use "operations" to indicate "some something can be done", to prevent
users from confusing it with CICD.
Releated to: #13539 .
Snapshots:
<img width="389" alt="image"
src="https://user-images.githubusercontent.com/9418365/206409797-a99bac25-2d38-4066-b9ab-27a4f6fe67e7.png ">
<img width="398" alt="image"
src="https://user-images.githubusercontent.com/9418365/206410099-bbd258a9-54d9-4664-8d95-31d29cb35209.png ">
<img width="442" alt="image"
src="https://user-images.githubusercontent.com/9418365/206410218-009a3103-a9b9-4d0c-86b6-540dda5bce89.png ">
I'm not a native English speaker, but I think "operations" may be good
enough, and Gitea already uses this word:
<img width="1440" alt="image"
src="https://user-images.githubusercontent.com/9418365/206410671-4a718b14-0603-40cb-bdcb-f6f84d1f5e24.png ">
2022-12-08 21:14:09 +08:00
8377fc00d6
Merge branch 'main' into feature/bots
2022-12-07 09:45:18 +08:00
e2fa84fddc
Release and Tag List tweaks ( #21712 )
...
- Reduce font size on tag list and add muted links
- Move Release tag to right side on release list
- Move Release edit button to far-right and make it icon-only
- Add styles for error dropdowns, seen on release edit page
- Make the release page slightly more mobile-friendly
<img width="468" alt="Screen Shot 2022-11-07 at 22 10 44"
src="https://user-images.githubusercontent.com/115237/200417500-149f40f5-2376-42b4-92a7-d7eba3ac359d.png ">
<img width="1015" alt="Screen Shot 2022-11-07 at 22 27 14"
src="https://user-images.githubusercontent.com/115237/200419201-b28f39d6-fe9e-4049-8023-b301c9bae528.png ">
<img width="1019" alt="Screen Shot 2022-11-07 at 22 27 27"
src="https://user-images.githubusercontent.com/115237/200419206-3f07d988-42f6-421d-8ba9-303a0d59e711.png ">
<img width="709" alt="Screen Shot 2022-11-07 at 22 42 10"
src="https://user-images.githubusercontent.com/115237/200421671-f0393cde-2d8f-4e1f-a788-f1f51fc4807c.png ">
<img width="713" alt="Screen Shot 2022-11-07 at 22 42 27"
src="https://user-images.githubusercontent.com/115237/200421676-5797f8cf-dfe8-4dd6-85d4-dc69e31a9912.png ">
<img width="406" alt="image"
src="https://user-images.githubusercontent.com/115237/200418220-8c3f7549-61b4-4661-935e-39e1352f7851.png ">
<img width="416" alt="Screen Shot 2022-11-07 at 22 21 36"
src="https://user-images.githubusercontent.com/115237/200418107-cdb0eb6f-1292-469c-b89a-2cb13f24173c.png ">
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2022-12-06 21:15:46 +08:00
ab0a60e56a
Merge branch 'main' into feature/bots
2022-12-06 16:39:06 +08:00
223782ca4c
refactor: rename to actions
2022-12-06 15:16:25 +08:00
77f50356f4
Remove useless "Cancel" buttons ( #21872 )
...
* Continues #21381
These buttons have no real use. To cancel, one would simply navigate
away.
Signed-off-by: Yarden Shoham <hrsi88@gmail.com >
2022-12-05 20:38:34 +08:00
704f72017d
refactor: rename packages
2022-12-05 15:45:38 +08:00
bd1af5b7f8
Merge branch 'main' into feature/bots
2022-12-05 14:31:00 +08:00
0e46499258
Do not emit ambiguous character warning on rendered pages ( #22016 )
...
The real sensitivity of ambiguous characters is in source code -
therefore warning about them in rendered pages causes too many warnings.
Therefore simply remove the warning on rendered pages.
The escape button will remain available and it is present on the view
source page.
Fix #20999
Signed-off-by: Andrew Thornton <art27@cantab.net >
2022-12-03 23:47:00 +08:00
b9ab9b21c6
Merge branch 'go-gitea:main' into feature/bots
2022-12-02 13:28:14 +08:00
665d02efaf
Remove duplicate "Actions" label in mobile view ( #21974 )
...
Closes #21973 .
The "Actions" button on the commit view page is labelled twice in mobile
view. No other buttons on the page have a `mobile-only` extra label, so
this PR removes it.
Before:

After:

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2022-12-01 22:39:19 -05:00
d2a4c10bc7
chore: code lint
2022-12-01 15:39:28 +08:00
b2745bff43
feat: support disable bots completely
2022-12-01 15:27:28 +08:00
847d65d724
Merge branch 'main' into feature/bots
2022-11-30 18:25:36 +08:00
7020c4afb7
Fix leaving organization bug on user settings -> orgs ( #21983 )
...
Fix #21772
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2022-11-30 17:00:00 +08:00
66b558017f
Merge branch 'main' into feature/bots
2022-11-28 17:23:53 +08:00
ef4b3673dd
chore: golang lint
2022-11-26 22:12:52 +08:00
bfe0fc1533
chore: replace spaces
2022-11-26 21:42:02 +08:00
abecf632d2
add rel="me" to org.website link ( #21941 )
...
This lets organizations verify their link on 3rd party websites.
2022-11-25 09:33:37 -06:00
2ecb59c092
rename builds -> bots
2022-11-25 17:48:48 +08:00
f3a9a25682
fix: remove build view header
2022-11-25 17:48:47 +08:00
7059cd7265
feat: update runner status
2022-11-25 17:48:47 +08:00
0c3f283a84
fix(runner-view): missing runner delete modal and routing
2022-11-25 17:48:47 +08:00
8c3ed11ed9
feat(runner-view): add task list in runnder details page, in admin
2022-11-25 17:48:47 +08:00
6a0614f4a5
feat(runner): add repo runners ui pages
2022-11-25 17:48:46 +08:00
888b4c8313
feat(runner): finish org runners ui
2022-11-25 17:48:46 +08:00
e5b835cf52
current page
2022-11-25 17:48:46 +08:00
44ee3fe550
remove termdemo
2022-11-25 17:48:46 +08:00
ea5e769428
fix build view ui
2022-11-25 17:48:46 +08:00
b5520f098f
Some improvements
2022-11-25 17:48:46 +08:00
8ec691f3ce
Almost finished
2022-11-25 17:48:46 +08:00
da60ae69be
delete modal
2022-11-25 17:48:46 +08:00
08b463a308
Fix duplicated alert
2022-11-25 17:48:46 +08:00
5b55fd0d36
org secrets
2022-11-25 17:48:46 +08:00
8dc263c6ed
fix show add secret panel
2022-11-25 17:48:46 +08:00
fa5b8e9eba
org secrets
2022-11-25 17:48:46 +08:00
da981db596
finish adding and deleting secret for repository settting
2022-11-25 17:48:46 +08:00
e43e3f9518
improve UI
2022-11-25 17:48:46 +08:00
ab4f539453
add models and services
2022-11-25 17:48:46 +08:00
d4e84c0433
Add simple master key provider for secret encryption
2022-11-25 17:48:46 +08:00
6531738b2e
fix: builds UI
2022-11-25 17:48:46 +08:00