2e128dd1fc 
								
							 
						 
						
							
							
								
								RPM Registry: Show zypper commands for SUSE based distros as well ( #25981 )  
							
							... 
							
							
							
							After RPM is supported with https://github.com/go-gitea/gitea/pull/23380 
let's show the user
how to add the repo and install the RPM via all common package managers.
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-20 17:37:31 +02:00  
				
					
						
							
							
								 
						
							
								d7a8d09da0 
								
							 
						 
						
							
							
								
								Add file status for API "Get a single commit from a repository" ( #16205 ) ( #25831 )  
							
							... 
							
							
							
							#16205  To obtain a closer behavior to the api from github, the status
(added, modified, removed) of a file should be available in addition to
the filename.
See github doc :
https://docs.github.com/fr/rest/commits/commits?apiVersion=2022-11-28#get-a-commit  
						
							2023-07-20 16:35:47 +08:00  
				
					
						
							
							
								 
						
							
								50e14699d3 
								
							 
						 
						
							
							
								
								Update path related documents ( #25417 )  
							
							... 
							
							
							
							Update WorkPath/WORK_PATH related documents, remove out-dated
information.
Remove "StaticRootPath" on the admin config display page, because few
end user really need it, it only causes misconfiguration.

Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-19 11:22:57 +02:00  
				
					
						
							
							
								 
						
							
								236c645bf1 
								
							 
						 
						
							
							
								
								Refactor "Content" for file uploading ( #25851 )  
							
							... 
							
							
							
							Before: the concept "Content string" is used everywhere. It has some
problems:
1. Sometimes it means "base64 encoded content", sometimes it means "raw
binary content"
2. It doesn't work with large files, eg: uploading a 1G LFS file would
make Gitea process OOM
This PR does the refactoring: use "ContentReader" / "ContentBase64"
instead of "Content"
This PR is not breaking because the key in API JSON is still "content":
`` ContentBase64 string `json:"content"` `` 
							
						 
						
							2023-07-18 18:14:47 +00:00  
				
					
						
							
							
								 
						
							
								dcb607d3cf 
								
							 
						 
						
							
							
								
								Make pending commit status yellow again ( #25935 )  
							
							... 
							
							
							
							With the introduction of Actions, the pending commit icon has changed
from yellow to grey for Drone integrations which never set the "running"
status, so it stays in "pending" until completion.
I find it better to have this icon colored like on 1.19. Now both the
"pending" and "running" icons look the same, but I guess we could add an
animation to the "running" state similar to GitHub has to it later.
Before:
<img width="339" alt="Screenshot 2023-07-17 at 19 14 19"
src="https://github.com/go-gitea/gitea/assets/115237/2f4886e4-74fd-42ea-b59e-9af8f141bf1f ">
After:
<img width="335" alt="Screenshot 2023-07-17 at 19 14 30"
src="https://github.com/go-gitea/gitea/assets/115237/53189642-e72d-47f6-9cbe-f14eda28f730 ">
Also, it matches GH's icon:
<img width="466" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/5804ff90-d223-4a3c-8093-7a9abbaacf87 ">
---------
Co-authored-by: delvh <dev.lh@web.de> 
							
						 
						
							2023-07-18 16:59:02 +00:00  
				
					
						
							
							
								 
						
							
								8fc4774e5a 
								
							 
						 
						
							
							
								
								Fix margin on the new/edit project page. ( #25885 )  
							
							... 
							
							
							
							New/Edit Project page consistent layout. Fix margin on the new/edit
page.
Before: 
<img width="1381" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/303e128c-0bd0-4289-a395-ff077e33b1c8 ">
<img width="1392" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/d11f7a42-ddf4-4c0a-a1b1-b8cefca9dfa1 ">
After
<img width="1390" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/8ae1a979-9050-4d68-8f5d-9dfaa620c0e8 ">
<img width="1391" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/24a62711-dc0a-4425-bf84-7c1896b9a005 ">
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-07-16 14:53:54 +00:00  
				
					
						
							
							
								 
						
							
								d473de0c2d 
								
							 
						 
						
							
							
								
								Make `add line comment` buttons focusable ( #25894 )  
							
							... 
							
							
							
							Use a real button and add an aria-label.
Additionally, show the button whenever it is focused.
See https://codeberg.org/forgejo/forgejo/issues/998  for explanation.
Our handling of this button is now equal to that of GitHub.
Nothing has changed visually. 
							
						 
						
							2023-07-15 11:45:34 +02:00  
				
					
						
							
							
								 
						
							
								dc679fc9fa 
								
							 
						 
						
							
							
								
								Fix incorrect release count ( #25879 )  
							
							... 
							
							
							
							Release count is not correct:
https://try.gitea.io/yp05327/testrepo/tags 

https://try.gitea.io/yp05327/testrepo/releases 

https://try.gitea.io/yp05327/testrepo/releases/tag/testtag 

We already have correct release count, no need to calculate it again.
c5e187c389/modules/context/repo.go (L547) 
							
						 
						
							2023-07-14 08:47:17 +00:00  
				
					
						
							
							
								 
						
							
								61c9268c56 
								
							 
						 
						
							
							
								
								Fix wrong usage of PathEscapeSegments in branch list page ( #25864 )  
							
							... 
							
							
							
							Before:

emmm, don't know how to write a good title to describe this issue.
If you have a good idea, I can change the title.
The fix code is copied from L122. Not sure it is right or not.
@lunny 
Maybe `DefaultBranchBranch` is also typo?
Two `Branch` in variable name . 
							
						 
						
							2023-07-14 06:08:38 +00:00  
				
					
						
							
							
								 
						
							
								b81c013057 
								
							 
						 
						
							
							
								
								Don't stack PR tab menu on small screens ( #25789 )  
							
							... 
							
							
							
							the stacking takes up screen space - display the tabs as the navigation
bar. github uses the same layout.
Screenshots (left before, right after):


Large screen:
 
							
						 
						
							2023-07-14 01:54:20 +00:00  
				
					
						
							
							
								 
						
							
								eec45b43db 
								
							 
						 
						
							
							
								
								move issue filters to shared template ( #25729 )  
							
							... 
							
							
							
							Issue filters are being used on repo list page and on milestone issues
page, and the code is mostly duplicated.
This PR does the following changes:
- move issue filters into a shared template
- allow filtering milestone issues by project, so no need to hide this
filter on milestone issues page
- remove some dead code (e. g. issue actions in milestone issues
template)
- fix label filter dropdown width
---------
Co-authored-by: 6543 <6543@obermui.de> 
							
						 
						
							2023-07-13 20:00:38 +00:00  
				
					
						
							
							
								 
						
							
								4744cb32e2 
								
							 
						 
						
							
							
								
								Fix margin on the `new/edit milestone` page ( #25801 )  
							
							... 
							
							
							
							There is some distortion in desktop and mobile ui for new/edit milestone
page.
Fixing the new/edit milestone page for desktop and mobile ui
Design background
https://uxplanet.org/primary-secondary-action-buttons-c16df9b36150 
https://balsamiq.com/learn/articles/button-design-best-practices/ 
<details>
  <summary>Screen shots</summary>
  
Before:


After


</details>
---------
Co-authored-by: Denys Konovalov <privat@denyskon.de>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-12 10:36:56 +00:00  
				
					
						
							
							
								 
						
							
								cee352bb38 
								
							 
						 
						
							
							
								
								Show correct SSL Mode on "install page" ( #25818 )  
							
							
							
						 
						
							2023-07-11 18:09:23 -04:00  
				
					
						
							
							
								 
						
							
								fa0b5b14c2 
								
							 
						 
						
							
							
								
								Make "install page" respect environment config ( #25648 )  
							
							... 
							
							
							
							Replace #25580 
Fix  #19453 
The problem was: when users set "GITEA__XXX__YYY" , the "install page"
doesn't respect it.
So, to make the result consistent and avoid surprising end users, now
the "install page" also writes the environment variables to the config
file.
And, to make things clear, there are enough messages on the UI to tell
users what will happen.
There are some necessary/related changes to `environment-to-ini.go`:
* The "--clear" flag is removed and it was incorrectly written there.
The "clear" operation should be done if INSTALL_LOCK=true
* The "--prefix" flag is removed because it's never used, never
documented and it only causes inconsistent behavior.
 
							
						 
						
							2023-07-09 22:43:37 +00:00  
				
					
						
							
							
								 
						
							
								61e0d1a767 
								
							 
						 
						
							
							
								
								Enable H014 and H023 djlint rules ( #25786 )  
							
							... 
							
							
							
							Enable these rules:
- H014 | More than 2 blank lines.
- H023 | Do not use entity references.
There are more potential rules to enable but they are blocked by bugs in
the linter:
- https://github.com/Riverside-Healthcare/djLint/issues/711 
- https://github.com/Riverside-Healthcare/djLint/issues/712  
							
						 
						
							2023-07-09 20:33:25 +00:00  
				
					
						
							
							
								 
						
							
								be23b73e85 
								
							 
						 
						
							
							
								
								Restructure issue list template, styles ( #25750 )  
							
							... 
							
							
							
							This PR does various modifications on the issue list shared template:
- restructure layout to achieve better responsiveness
-  fix various style issues
- restructure styles (better result with less code :)
- remove numerous `gt-*` patches and other unneeded classes -> use
existing css classes
<details>
<summary>Before:</summary>



</details>
<details>
<summary>After:</summary>



</details>
---------
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-07-09 19:38:01 +00:00  
				
					
						
							
							
								 
						
							
								84c78650cc 
								
							 
						 
						
							
							
								
								Fix notification list bugs ( #25781 )  
							
							... 
							
							
							
							Fix  #25627 
1. `ctx.Data["Link"]` should use relative URL but not AppURL
2. The `data-params` is incorrect because it doesn't contain "page". JS
can simply use "window.location.search" to construct the AJAX URL
3. The `data-xxx` and `id` in notification_subscriptions.tmpl were
copied&pasted, they don't have affect. 
						
							2023-07-09 18:42:31 +00:00  
				
					
						
							
							
								 
						
							
								d58096ec31 
								
							 
						 
						
							
							
								
								Fix the wrong default branch name displayed by checkout ( #25777 )  
							
							... 
							
							
							
							Related: #22743 
Before:

After:
 
							
						 
						
							2023-07-09 11:09:06 +02:00  
				
					
						
							
							
								 
						
							
								f8bb1018ae 
								
							 
						 
						
							
							
								
								Tweak repo topics bar ( #25769 )  
							
							... 
							
							
							
							Minor tweaks to repo topics:
- Use gap instead of margin to align "Manage Topics" when no topics
present
- Add margin to description instead
Before:
<img width="1232" alt="Screenshot 2023-07-08 at 13 08 15"
src="https://github.com/go-gitea/gitea/assets/115237/a5d3586c-6cbf-4b74-8137-11d91f2cbb45 ">
<img width="1233" alt="Screenshot 2023-07-08 at 13 08 05"
src="https://github.com/go-gitea/gitea/assets/115237/59b18d93-e4cb-4f2b-9bc2-d6aa63f93827 ">
After:
<img width="1232" alt="Screenshot 2023-07-08 at 13 08 42"
src="https://github.com/go-gitea/gitea/assets/115237/470d42ad-3f7e-40f9-b0a1-203b4af77eb9 ">
<img width="1231" alt="Screenshot 2023-07-08 at 13 08 32"
src="https://github.com/go-gitea/gitea/assets/115237/42d18048-748c-4a3f-ab89-3403866cef34 ">
--------- 
							
						 
						
							2023-07-08 18:12:30 +00:00  
				
					
						
							
							
								 
						
							
								2ff0c12a95 
								
							 
						 
						
							
							
								
								Repository Archived text title center align ( #25767 )  
							
							... 
							
							
							
							Archive text title center align
<details>
  <summary>Screen shots</summary>
  
 Before

After 


BTW On github

</details>
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-08 10:57:17 +00:00  
				
					
						
							
							
								 
						
							
								cc00fd50f3 
								
							 
						 
						
							
							
								
								Clarify "text-align" CSS helpers, fix clone button padding ( #25763 )  
							
							... 
							
							
							
							Changes:
* Rename gt-tl/gt-tc/gt-tr to gt-text-left/gt-text-center/gt-text-right
* The gt-ab and gt-br-0 are removed because they are not needed anymore
* Fix the clone dropdown button padding by ":not(.icon)"
Before:
<details>

</details>
After:
<details>

</details>
Fixes  #25758 
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-08 11:53:56 +02:00  
				
					
						
							
							
								 
						
							
								6375419468 
								
							 
						 
						
							
							
								
								Newly pushed branches hints on repository home page ( #25715 )  
							
							... 
							
							
							
							This PR will display a pull request creation hint on the repository home
page when there are newly created branches with no pull request. Only
the recent 6 hours and 2 updated branches will be displayed.
Inspired by #14003  
Replace #14003  
Resolves  #311 
Resolves  #13196 
Resolves  #23743 
co-authored by @kolaente 
							
						 
						
							2023-07-08 05:19:00 +02:00  
				
					
						
							
							
								 
						
							
								e0a780d75b 
								
							 
						 
						
							
							
								
								Translate untranslated string in issues list ( #25759 )  
							
							
							
						 
						
							2023-07-07 22:36:39 +00:00  
				
					
						
							
							
								 
						
							
								3780795b93 
								
							 
						 
						
							
							
								
								Reformat some templates ( #25756 )  
							
							... 
							
							
							
							Only: indent/dedent/newline 
							
						 
						
							2023-07-07 18:06:49 +00:00  
				
					
						
							
							
								 
						
							
								128d77a3a0 
								
							 
						 
						
							
							
								
								Following up fixes for "Fix inconsistent user profile layout across tabs" ( #25739 )  
							
							... 
							
							
							
							Follow
https://github.com/go-gitea/gitea/pull/25625#issuecomment-1621577816 
1. Fix the incorrect "project view" layout
2. Fix the "follow/unfollow" link on "packages" and "projects" tab
Before:

After:

---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-07 17:27:12 +02:00  
				
					
						
							
							
								 
						
							
								a6a9389c70 
								
							 
						 
						
							
							
								
								Hide `add file` button for pull mirrors ( #25748 )  
							
							... 
							
							
							
							I think hiding the add file button for mirror repositories that can keep the ui clean.
Before:

After:
 
							
						 
						
							2023-07-07 13:36:14 +00:00  
				
					
						
							
							
								 
						
							
								98088befae 
								
							 
						 
						
							
							
								
								Fix broken translations for package documantion ( #25742 )  
							
							... 
							
							
							
							The code was just copied&pasted, it causes problems now.
There are a lot (for every package) broken translations. eg:
```
# en-US
conda.documentation = For more information on the Conda registry, see 
<a target="_blank" rel="noopener noreferrer" href="%s">the documentation</a>.
# fr-FR (and many languages)
conda.documentation=Pour plus d'informations sur le registre Conda, voir 
<a target="_blank" rel="noopener noreferrer" href="https://docs.gitea.io/fr-fr/packages/conda/ ">la documentation</a>.
```
To resolve the problem fundamentally, use a general string, and trigger
the re-translating on Crowdin side.
And, it should really really really avoid introducing too much
copied&pasted code ....... 
							
						 
						
							2023-07-07 10:47:26 +02:00  
				
					
						
							
							
								 
						
							
								2af30f715e 
								
							 
						 
						
							
							
								
								Fix inconsistent user profile layout across tabs ( #25625 )  
							
							... 
							
							
							
							Fix ::User Profile Page  Project Tab Have Inconsistent Layout and Style
Added the big_avator for consistency in the all header_items tabs.
Fixes : #24871 
> ### Description
> in the user profile page the `Packages` and `Projects` tab have small
icons for user but other tabs have bigger profile picture with user
info:
> 
> ### Screenshots
> ### **For Packages And Projects:**
>

> 
> ### **For Other Tabs:**
>

> 
## Before

 ## After changes
Project View 
<img width="1394" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/95d181d7-8e61-496d-9899-7b825c91ad56 ">
Packages View
<img width="1378" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/7f5fd60f-6b18-4fa8-8c56-7b0d45d1a610 ">
## Org view for projects page
<img width="1385" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/6400dc89-a5ae-4f0a-831b-5b6efa020d89 ">
## Org view for packages page
<img width="1387" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/4e1e9ffe-1e4b-4334-8657-de11b5fd31d0 ">
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2023-07-06 18:59:24 +00:00  
				
					
						
							
							
								 
						
							
								f03d95f0a9 
								
							 
						 
						
							
							
								
								Allow/fix review (approve/reject) of empty PRs ( #25690 )  
							
							... 
							
							
							
							gitea allows to create empty PRs.
Currently when you need approvals for a merge, you have to manually add
/files to the url to get to the files tab to approve / reject the PR.
This PR allows to open the files tab via the normal tab / link and then
fixes the layout of the files tab.
**Screenshots:**
Before:

After:

---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-06 15:33:04 +00:00  
				
					
						
							
							
								 
						
							
								d17a848fe2 
								
							 
						 
						
							
							
								
								Disable run user change in installation page ( #22499 )  
							
							... 
							
							
							
							The run user should not be changed on the installation page because it
will not be any effect to Gitea.
This PR disabled the input box of run user. 
							
						 
						
							2023-07-06 10:14:51 +08:00  
				
					
						
							
							
								 
						
							
								e1edd7a8e9 
								
							 
						 
						
							
							
								
								Show correct naming for 1 comment ( #25704 )  
							
							... 
							
							
							
							- Resolves https://codeberg.org/forgejo/forgejo/issues/948 
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-05 19:53:38 +00:00  
				
					
						
							
							
								 
						
							
								90b3b3dbf8 
								
							 
						 
						
							
							
								
								Fix tags header and pretty format numbers ( #25624 )  
							
							... 
							
							
							
							This caused by #23465  
							
						 
						
							2023-07-05 04:11:42 +00:00  
				
					
						
							
							
								 
						
							
								00dbba7f42 
								
							 
						 
						
							
							
								
								Several fixes for mobile UI ( #25634 )  
							
							... 
							
							
							
							Resolves  #25622  
<details>
<summary>Screenshots</summary>







</details>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io> 
						
							2023-07-04 17:45:45 +00:00  
				
					
						
							
							
								 
						
							
								0006169f38 
								
							 
						 
						
							
							
								
								Actions list enhancements ( #25601 )  
							
							... 
							
							
							
							Various small enhancements to the actions list. Before and after:
<img width="1264" alt="Screenshot 2023-06-30 at 00 11 40"
src="https://github.com/go-gitea/gitea/assets/115237/bb4162ee-cdcf-4a73-b05e-f9521562edbb ">
<img width="1264" alt="Screenshot 2023-06-30 at 00 09 51"
src="https://github.com/go-gitea/gitea/assets/115237/52a70ea9-4bb3-406e-904b-0fdaafde9582 ">
---------
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-07-04 09:59:47 +00:00  
				
					
						
							
							
								 
						
							
								eea58a5d55 
								
							 
						 
						
							
							
								
								Fix UI misalignment on user setting page ( #25629 )  
							
							... 
							
							
							
							Fix  #25628 
Diff with ignoring space:
https://github.com/go-gitea/gitea/pull/25629/files?diff=unified&w=1 
The "modal" shouldn't appear between "ui attached segment", otherwise
these segments lose margin-top.
After the fix:
<details>




</details> 
						
							2023-07-03 20:38:06 +00:00  
				
					
						
							
							
								 
						
							
								45bc180a15 
								
							 
						 
						
							
							
								
								Make "cancel" buttons have proper type in modal forms ( #25618 )  
							
							... 
							
							
							
							Replace #25446 , fix  #25438 
All "cancel" buttons which do not have "type" should not submit the
form, should not be triggered by "Enter".
This is a complete fix for all modal dialogs.
The major change is "modules/aria/modal.js", "devtest" related code is
for demo/test purpose. 
							
						 
						
							2023-07-03 14:04:50 +08:00  
				
					
						
							
							
								 
						
							
								7735da1c66 
								
							 
						 
						
							
							
								
								Display branch commit status ( #25608 )  
							
							... 
							
							
							
							Fix  #10388 
This PR adds a status icon for every branch which has a status check for
the latest commit on branch list page.
<img width="1313" alt="图片"
src="https://github.com/go-gitea/gitea/assets/81045/727cd540-d03a-40c6-a7dd-e87c118af0ac "> 
						
							2023-07-03 03:32:21 +00:00  
				
					
						
							
							
								 
						
							
								5b79eeabd1 
								
							 
						 
						
							
							
								
								use css on labels ( #25626 )  
							
							... 
							
							
							
							Changes html to use CSS label class similar to
`templates/shared/actions/runner_list.tmpl` 
							
						 
						
							2023-07-03 02:33:28 +00:00  
				
					
						
							
							
								 
						
							
								36f1fa7792 
								
							 
						 
						
							
							
								
								Support displaying diff stats in PR tab bar ( #25387 )  
							
							... 
							
							
							
							Fix  #25326 
---------
Co-authored-by: silverwind <me@silverwind.io> 
						
							2023-07-03 01:00:28 +00:00  
				
					
						
							
							
								 
						
							
								de981c39e6 
								
							 
						 
						
							
							
								
								Fix bug of branches API with tests ( #25578 )  
							
							... 
							
							
							
							Fix  #25558 
Extract from #22743 
This PR added a repository's check when creating/deleting branches via
API. Mirror repository and archive repository cannot do that. 
						
							2023-07-01 10:52:52 +08:00  
				
					
						
							
							
								 
						
							
								4583cbd615 
								
							 
						 
						
							
							
								
								Adding  branch-name copy  to clipboard branches screen. ( #25596 )  
							
							... 
							
							
							
							Adding  branch-name copy  to clipboard and button in branches screen
Replaces #25569 
Fixes  #25120 
New mocks:
<img width="876" alt="Screenshot 2023-06-30 at 12 01 41 AM"
src="https://github.com/go-gitea/gitea/assets/80308335/a34ab00f-5625-4529-ba17-f2bf7af58e2a ">
<img width="822" alt="Screenshot 2023-06-30 at 12 03 59 AM"
src="https://github.com/go-gitea/gitea/assets/80308335/3a32dffc-52cd-49e1-a437-6d11d58d0939 ">
<img width="476" alt="image"
src="https://github.com/go-gitea/gitea/assets/80308335/85e8f361-5cb7-45d4-aced-ad2523d54ab0 "> 
							
						 
						
							2023-06-30 18:16:17 +00:00  
				
					
						
							
							
								 
						
							
								ed8a8af99f 
								
							 
						 
						
							
							
								
								Use AfterCommitId to get commit for Viewed functionality ( #25529 )  
							
							... 
							
							
							
							the PullHeadCommitID is not always available when the PR is merged.
Not sure if this is the best solution but in my simple tests it looks
like this fixes the problem - happy to get any feedback.
hopefully fixes https://github.com/go-gitea/gitea/issues/24813  
							
						 
						
							2023-07-01 00:08:18 +08:00  
				
					
						
							
							
								 
						
							
								254a82842a 
								
							 
						 
						
							
							
								
								Add API for changing Avatars ( #25369 )  
							
							... 
							
							
							
							This adds an API for uploading and Deleting Avatars for of Users, Repos
and Organisations. I'm not sure, if this should also be added to the
Admin API.
Resolves  #25344 
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io> 
							
						 
						
							2023-06-29 23:22:55 +00:00  
				
					
						
							
							
								 
						
							
								9fd63aaad1 
								
							 
						 
						
							
							
								
								read-only checkboxes don't appear and don't entirely act the way one might expect ( #25573 )  
							
							... 
							
							
							
							This pull request fades read-only checkboxes and checkmark, and it makes
the checkboxes act more read-only/disabled by not changing the
border-color when clicked.
Examples using light mode:
 
| Before | After |
| - | - |
| 
| 
|
| 
| 
|
| | read-only checkboxes and checkmark are faded<br>and the checkboxes
act more read-only/disabled |
Fixes/Closes/Resolves #25076 
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-06-30 00:16:53 +02:00  
				
					
						
							
							
								 
						
							
								cf2356062f 
								
							 
						 
						
							
							
								
								Redirect to package after version deletion ( #25594 )  
							
							... 
							
							
							
							Related #25559 
Current behaviour:
1. Deletion of a package version
2. Redirect to the owners package list
New behaviour:
1. Deletion of a package version
2.1. If there are more versions available, redirect to the package again
2.2. If there are no versions available, redirect to the owners package
list 
							
						 
						
							2023-06-29 17:01:14 +00:00  
				
					
						
							
							
								 
						
							
								64f2d70262 
								
							 
						 
						
							
							
								
								Replace fomantic divider module with our own ( #25539 )  
							
							... 
							
							
							
							Should look exactly like before for normal dividers. "Horizontal" ones
look better because they no longer use image backgrounds.
<img width="917" alt="Screenshot 2023-06-27 at 19 07 56"
src="https://github.com/go-gitea/gitea/assets/115237/d97d8dec-6859-44a8-85ba-e4549b4dd9df ">
<img width="914" alt="Screenshot 2023-06-27 at 19 05 58"
src="https://github.com/go-gitea/gitea/assets/115237/8bf98544-2d82-4ebf-ac68-d6dc237bd6b2 ">
<img width="1246" alt="Screenshot 2023-06-27 at 19 00 42"
src="https://github.com/go-gitea/gitea/assets/115237/36a6bb21-6029-4f53-8bee-535f55c66fed ">
<img width="344" alt="Screenshot 2023-06-27 at 18 58 15"
src="https://github.com/go-gitea/gitea/assets/115237/a9e70aee-8e6b-4ea1-9e93-19c9f96aec6e ">
<img width="823" alt="Screenshot 2023-06-27 at 18 56 22"
src="https://github.com/go-gitea/gitea/assets/115237/e7a497cd-f262-4683-8872-23c3c8cce32f ">
<img width="330" alt="Screenshot 2023-06-27 at 19 21 11"
src="https://github.com/go-gitea/gitea/assets/115237/42f24149-a655-4c7e-bd26-8ab52db6446b "> 
							
						 
						
							2023-06-29 20:24:22 +08:00  
				
					
						
							
							
								 
						
							
								6e19484f4d 
								
							 
						 
						
							
							
								
								Sync branches into databases ( #22743 )  
							
							... 
							
							
							
							Related #14180 
Related #25233  
Related #22639 
Close  #19786 
Related #12763  
This PR will change all the branches retrieve method from reading git
data to read database to reduce git read operations.
- [x] Sync git branches information into database when push git data
- [x] Create a new table `Branch`, merge some columns of `DeletedBranch`
into `Branch` table and drop the table `DeletedBranch`.
- [x] Read `Branch` table when visit `code` -> `branch` page
- [x] Read `Branch` table when list branch names in `code` page dropdown
- [x] Read `Branch` table when list git ref compare page
- [x] Provide a button in admin page to manually sync all branches.
- [x] Sync branches if repository is not empty but database branches are
empty when visiting pages with branches list
- [x] Use `commit_time desc` as the default FindBranch order by to keep
consistent as before and deleted branches will be always at the end.
---------
Co-authored-by: Jason Song <i@wolfogre.com> 
							
						 
						
							2023-06-29 10:03:20 +00:00  
				
					
						
							
							
								 
						
							
								5a871932f0 
								
							 
						 
						
							
							
								
								Fix milestones deletion ( #25583 )  
							
							... 
							
							
							
							Close  #25557  
Fix regression from #25315 
`data-id` is still needed for deleting milestone. 
						
							2023-06-29 10:17:18 +02:00  
				
					
						
							
							
								 
						
							
								c6f1fb1c6d 
								
							 
						 
						
							
							
								
								Use fetch form action for lock/unlock/pin/unpin on sidebar ( #25380 )  
							
							... 
							
							
							
							Before:
<img width="364" alt="Screen Shot 2023-06-20 at 11 59 11"
src="https://github.com/go-gitea/gitea/assets/17645053/ad284b7e-8d21-43be-b178-bbcfd37cb5bd ">
Might trigger many posts when keep clicking the buttons above.
<img width="448" alt="Screen Shot 2023-06-20 at 11 52 28"
src="https://github.com/go-gitea/gitea/assets/17645053/a60aa6ac-af74-45e4-b13a-512b436b81b0 ">
<img width="678" alt="Screen Shot 2023-06-20 at 11 52 37"
src="https://github.com/go-gitea/gitea/assets/17645053/d6662700-3643-4cc7-a2ec-64e1c0f5fbdb ">
After (PR sidebar, Same for issue):
https://github.com/go-gitea/gitea/assets/17645053/9df3ad1f-e29c-439b-8bde-e6b917d63cc6 
For delete, it is using `base/modal_actions_confirm` subtemplate, and we
might need another general solution for this (maybe add another
attribute to the subtemplate or something)
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-06-29 04:16:04 +00:00  
				
					
						
							
							
								 
						
							
								f0b773e0ce 
								
							 
						 
						
							
							
								
								Support downloading raw task logs ( #24451 )  
							
							... 
							
							
							
							Hi!
This pull request adds support for downloading raw task logs for Gitea
Actions, similar to Github Actions
It looks like the following:
 
							
						 
						
							2023-06-29 10:58:56 +08:00