da985b25ce
Fix potential assignee query for repo ( #18994 ) ( #18999 )
...
* Fix potential assignee query for repo
* Add tests for `GetRepoAssignees`
- As per https://github.com/go-gitea/gitea/pull/18994#issuecomment-1058506640
Co-authored-by: Gusted <williamzijl7@hotmail.com >
2022-03-05 00:12:34 +08:00
f4b96c1041
Set max text height to prevent overflow ( #18862 ) ( #18977 )
...
Sets a max height for review text boxes to prevent a very annoying bug where users cannot access the "submit" button.
Before:

After:

Interestingly, I don't see this bug on Firefox.
Co-authored-by: Kyle D <kdumontnu@gmail.com >
2022-03-02 20:12:48 +00:00
a3f72303d1
Fix problem when self-assign notification ( #18797 ) ( #18976 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
2022-03-02 20:11:55 +00:00
578f19a682
Refactor admin user filter query parameters ( #18965 ) ( #18975 )
...
Only pass `status_filter` on admin page
Use a more general method to pass query parameters, remove hard-coded keys
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2022-03-02 19:57:18 +01:00
Otto Richter (fnetX) and GitHub
36e96e3481
Fix admin user list pagination ( #18957 ) ( #18960 )
2022-03-01 23:00:03 +00:00
6039138323
Fix redirect when using lowercase reponame ( #18775 ) ( #18902 )
...
* Previously, `GET {username}/{reponame}/raw///file-path` (the middle two slashes are blank to get the default branch) when the repo name has uppercase letters, e.g., https://try.gitea.io/AbdulrhmnGhanem/CH330_Hardware , using a lowercase version of the name redirected to the correct URL
* In other words both
* `GET https://try.gitea.io/AbdulrhmnGhanem/CH330_Hardware/raw///images/back.png `
* `GET https://try.gitea.io/AbdulrhmnGhanem/ch330_hardware/raw///images/back.png `
were redirecting to ` GET https://try.gitea.io/AbdulrhmnGhanem/CH330_Hardware/raw/branch/master/images/back.png `
This isn't the case after #17551 . Specifically because of this [line](https://github.com/zeripath/gitea/blob/cbd5eecd148dfca5fcb1a3da469e491a84f6b32b/modules/context/repo.go#L860 ).
Co-authored-by: Ghanem <37152329+AbdulrhmnGhanem@users.noreply.github.com >
2022-02-26 08:16:22 +08:00
fnetX (aka fralix) and GitHub
1fc9f11253
Add dropdown icon to template loading dropdown ( #18571 )
2022-02-03 11:28:27 +01:00
fnetX (aka fralix) and GitHub
830ab75ce0
Switch archive URL code back to href attributes ( #17796 )
...
* Add fallback href link
* Switch async archive generation to use href links
* Edit all templates to use href instead of data-url for archives
* Add consistent rel="nofollow" as per wxiaoguang
2021-11-29 21:50:43 +08:00
d5f20104da
Remove branch URL before IssueRefURL ( #15968 )
...
Revert change for account / org dashboard where IssueRefURLs do not
contain the full repo URL (case RepoLink is not true)
Co-authored-by: Norwin <noerw@users.noreply.github.com >
Remove trailing whitespace from PR review
2021-05-25 16:02:37 -04:00