yp05327 
							
						 
					 
					
						
						
							
						
						af02b8a0e9 
					 
					
						
						
							
							Fix network error when open/close organization/individual projects and redirect to project page ( #30387 )  
						
						... 
						
						
						
						Follow #27734 

Updated:
Redirect to project page instead of project list page. 
						
						
					 
					
						2024-04-13 16:17:01 +00:00 
						 
				 
			
				
					
						
							
							
								Denys Konovalov 
							
						 
					 
					
						
						
							
						
						e5160185ed 
					 
					
						
						
							
							Add default board to new projects, remove uncategorized pseudo-board ( #29874 )  
						
						... 
						
						
						
						On creation of an empty project (no template) a default board will be
created instead of falling back to the uneditable pseudo-board.
Every project now has to have exactly one default boards. As a
consequence, you cannot unset a board as default, instead you have to
set another board as default. Existing projects will be modified using a
cron job, additionally this check will run every midnight by default.
Deleting the default board is not allowed, you have to set another board
as default to do it.
Fixes  #29873 
Fixes  #14679  along the way
Fixes  #29853 
Co-authored-by: delvh <dev.lh@web.de > 
						
						
					 
					
						2024-03-27 20:54:32 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						a889381664 
					 
					
						
						
							
							Remove AddParamIfExist(AddParam) ( #29841 )  
						
						... 
						
						
						
						Follow #29834 
Remove AddParamIfExist, use "AddParamString" instead, it should clearly
know what is being added into the parameters. 
						
						
					 
					
						2024-03-16 12:07:56 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						e0ea3811c4 
					 
					
						
						
							
							Refactor AddParam to AddParamIfExist ( #29834 )  
						
						... 
						
						
						
						When read the code: `pager.AddParam(ctx, "search", "search")`, the
question always comes: What is it doing? Where is the value from? Why
"search" / "search" ?
Now it is clear: `pager.AddParamIfExist("search", ctx.Data["search"])` 
						
						
					 
					
						2024-03-16 10:20:13 +01:00 
						 
				 
			
				
					
						
							
							
								KN4CK3R 
							
						 
					 
					
						
						
							
						
						c337ff0ec7 
					 
					
						
						
							
							Add user blocking ( #29028 )  
						
						... 
						
						
						
						Fixes  #17453 
This PR adds the abbility to block a user from a personal account or
organization to restrict how the blocked user can interact with the
blocker. The docs explain what's the consequence of blocking a user.
Screenshots:



---------
Co-authored-by: Lauris BH <lauris@nix.lv > 
					
						2024-03-04 08:16:03 +00:00 
						 
				 
			
				
					
						
							
							
								Tim-Niclas Oelschläger 
							
						 
					 
					
						
						
							
						
						e3524c63d6 
					 
					
						
						
							
							Filter Repositories by type ( #29231 )  
						
						... 
						
						
						
						Filter Repositories by type (resolves  #1170 , #1318 )
before:

after:
 
						
						
					 
					
						2024-03-03 10:18:34 +00:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						a3f05d0d98 
					 
					
						
						
							
							remove util.OptionalBool and related functions ( #29513 )  
						
						... 
						
						
						
						and migrate affected code
_last refactoring bits to replace **util.OptionalBool** with
**optional.Option[bool]**_ 
						
						
					 
					
						2024-03-02 16:42:31 +01:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						fb42972c05 
					 
					
						
						
							
							Rename Str2html to SanitizeHTML and clarify its behavior ( #29516 )  
						
						... 
						
						
						
						Str2html was abused a lot. So use a proper name for it: SanitizeHTML
And add some tests to show its behavior. 
						
						
					 
					
						2024-03-01 10:16:19 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						e71eb8930a 
					 
					
						
						
							
							Refactor some Str2html code ( #29397 )  
						
						... 
						
						
						
						This PR touches the most interesting part of the "template refactoring".
1. Unclear variable type. Especially for "web/feed/convert.go":
sometimes it uses text, sometimes it uses HTML.
2. Assign text content to "RenderedContent" field, for example: `
project.RenderedContent = project.Description` in web/org/projects.go
3. Assign rendered content to text field, for example: `r.Note =
rendered content` in web/repo/release.go
4. (possible) Incorrectly calling `{{Str2html
.PackageDescriptor.Metadata.ReleaseNotes}}` in
package/content/nuget.tmpl, I guess the name Str2html misleads
developers to use it to "render string to html", but it only sanitizes.
if ReleaseNotes really contains HTML, then this is not a problem. 
						
						
					 
					
						2024-03-01 07:11:51 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						29f149bd9f 
					 
					
						
						
							
							Move context from modules to services ( #29440 )  
						
						... 
						
						
						
						Since `modules/context` has to depend on `models` and many other
packages, it should be moved from `modules/context` to
`services/context` according to design principles. There is no logic
code change on this PR, only move packages.
- Move `code.gitea.io/gitea/modules/context` to
`code.gitea.io/gitea/services/context`
- Move `code.gitea.io/gitea/modules/contexttest` to
`code.gitea.io/gitea/services/contexttest` because of depending on
context
- Move `code.gitea.io/gitea/modules/upload` to
`code.gitea.io/gitea/services/context/upload` because of depending on
context 
						
						
					 
					
						2024-02-27 08:12:22 +01:00 
						 
				 
			
				
					
						
							
							
								Tim-Nicas Oelschläger 
							
						 
					 
					
						
						
							
						
						532e422027 
					 
					
						
						
							
							Unify organizations header ( #29248 )  
						
						... 
						
						
						
						Unify organizations header
before:

after:

---------
Co-authored-by: silverwind <me@silverwind.io > 
						
						
					 
					
						2024-02-23 01:24:57 +01:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						f3eb835886 
					 
					
						
						
							
							Refactor locale&string&template related code ( #29165 )  
						
						... 
						
						
						
						Clarify when "string" should be used (and be escaped), and when
"template.HTML" should be used (no need to escape)
And help PRs like  #29059  , to render the error messages correctly. 
						
						
					 
					
						2024-02-14 21:48:45 +00:00 
						 
				 
			
				
					
						
							
							
								techknowlogick 
							
						 
					 
					
						
						
							
						
						a346a8c852 
					 
					
						
						
							
							bump to use go 1.22 ( #29119 )  
						
						
						
						
					 
					
						2024-02-14 18:19:57 +00:00 
						 
				 
			
				
					
						
							
							
								KN4CK3R 
							
						 
					 
					
						
						
							
						
						f8b471ace1 
					 
					
						
						
							
							Unify user update methods ( #28733 )  
						
						... 
						
						
						
						Fixes  #28660 
Fixes an admin api bug related to `user.LoginSource`
Fixed `/user/emails` response not identical to GitHub api
This PR unifies the user update methods. The goal is to keep the logic
only at one place (having audit logs in mind). For example, do the
password checks only in one method not everywhere a password is updated.
After that PR is merged, the user creation should be next. 
					
						2024-02-04 13:29:09 +00:00 
						 
				 
			
				
					
						
							
							
								KN4CK3R 
							
						 
					 
					
						
						
							
						
						c3e462921e 
					 
					
						
						
							
							Improve user search display name ( #29002 )  
						
						... 
						
						
						
						I tripped over this strange method and I don't think we need that
workaround to fix the value.
old:

new:

---------
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2024-02-01 17:10:16 +00:00 
						 
				 
			
				
					
						
							
							
								KN4CK3R 
							
						 
					 
					
						
						
							
						
						637451a45e 
					 
					
						
						
							
							Rework markup link rendering ( #26745 )  
						
						... 
						
						
						
						Fixes  #26548 
This PR refactors the rendering of markup links. The old code uses
`strings.Replace` to change some urls while the new code uses more
context to decide which link should be generated.
The added tests should ensure the same output for the old and new
behaviour (besides the bug).
We may need to refactor the rendering a bit more to make it clear how
the different helper methods render the input string. There are lots of
options (resolve links / images / mentions / git hashes / emojis / ...)
but you don't really know what helper uses which options. For example,
we currently support images in the user description which should not be
allowed I think:
<details>
  <summary>Profile</summary> 
https://try.gitea.io/KN4CK3R 

</details>
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
					
						2024-01-15 08:49:24 +00:00 
						 
				 
			
				
					
						
							
							
								katsu 
							
						 
					 
					
						
						
							
						
						42149ff1a8 
					 
					
						
						
							
							fix wrong link in user and organization profile when using relative url ( #28617 )  
						
						... 
						
						
						
						fix  #28436 .
the doc https://docs.gitea.com/usage/profile-readme  maybe also need to
be updated to tell that
the main branch is necessary,which means the following three conditions
should be satisfied:
- repo: **.profile**
- branch: **[default branch]**
- markdown: **README.md** 
					
						2023-12-27 08:32:27 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						df1e7d0067 
					 
					
						
						
							
							Use db.Find instead of writing methods for every object ( #28084 )  
						
						... 
						
						
						
						For those simple objects, it's unnecessary to write the find and count
methods again and again. 
						
						
					 
					
						2023-11-24 03:49:41 +00:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						089ac06969 
					 
					
						
						
							
							Improve profile for Organizations ( #27982 )  
						
						... 
						
						
						
						Fixes some problems in #27955 :
- autofocus of the search box
before:
if access the home page will jump to the search box

after:
will not jump to the search box

- incorrect display of overview tab
before:

after:

- improve the permission check to the private profile repo
In #26295 , we simply added access control to the private profile.
But if user have access to the private profile repo , we should also
display the profile.
- add a button which can jump to the repo list?
I agree @wxiaoguang 's opinion here:
https://github.com/go-gitea/gitea/pull/27955#issuecomment-1803178239 
But it seems that this feature is sponsored. 
So can we add a button which can quickly jump to the repo list or just
move profile to the `overview` page?
---------
Co-authored-by: silverwind <me@silverwind.io > 
						
						
					 
					
						2023-11-13 15:33:22 +01:00 
						 
				 
			
				
					
						
							
							
								6543 
							
						 
					 
					
						
						
							
						
						603573366a 
					 
					
						
						
							
							Add Profile Readme for Organisations ( #27955 )  
						
						... 
						
						
						
						https://blog.gitea.com/release-of-1.20.0/#-user-profile-readme-23260 
(#23260 ) did introduce Profile Readme for Users.
This makes it usable for Organisations:

---
*Sponsored by Kithara Software GmbH*
---------
Co-authored-by: silverwind <me@silverwind.io >
Co-authored-by: KN4CK3R <admin@oldschoolhack.me > 
					
						2023-11-09 14:05:52 +00:00 
						 
				 
			
				
					
						
							
							
								853 
							
						 
					 
					
						
						
							
						
						e544a277fe 
					 
					
						
						
							
							Fix the missing repo count in new team page and edit team page ( #27743 )  
						
						... 
						
						
						
						Follow #26942 
Before:


After:

 
						
						
					 
					
						2023-10-25 13:55:56 +08:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						3dc0c962bf 
					 
					
						
						
							
							Delete repos of org when purge delete user ( #27273 )  
						
						... 
						
						
						
						Fixes https://codeberg.org/forgejo/forgejo/issues/1514 
I had to remove `RenameOrganization` to avoid circular import.
We should really add some foreign keys to the database. 
						
						
					 
					
						2023-10-19 13:16:11 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						cddf245c12 
					 
					
						
						
							
							Replace more db.DefaultContext ( #27628 )  
						
						... 
						
						
						
						Target #27065  
						
						
					 
					
						2023-10-15 17:46:06 +02:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						76a85a4ce9 
					 
					
						
						
							
							Final round of db.DefaultContext refactor ( #27587 )  
						
						... 
						
						
						
						Last part of #27065  
						
						
					 
					
						2023-10-14 08:37:24 +00:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						ebe803e514 
					 
					
						
						
							
							Penultimate round of db.DefaultContext refactor ( #27414 )  
						
						... 
						
						
						
						Part of #27065 
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com > 
						
						
					 
					
						2023-10-11 04:24:07 +00:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						cc5df26680 
					 
					
						
						
							
							Even more db.DefaultContext refactor ( #27352 )  
						
						... 
						
						
						
						Part of #27065 
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: delvh <dev.lh@web.de > 
						
						
					 
					
						2023-10-03 10:30:41 +00:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						cf0df023be 
					 
					
						
						
							
							More db.DefaultContext refactor ( #27265 )  
						
						... 
						
						
						
						Part of #27065 
This PR touches functions used in templates. As templates are not static
typed, errors are harder to find, but I hope I catch it all. I think
some tests from other persons do not hurt. 
						
						
					 
					
						2023-09-29 12:12:54 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						673cf6af76 
					 
					
						
						
							
							make writing main test easier ( #27270 )  
						
						... 
						
						
						
						This PR removed `unittest.MainTest` the second parameter
`TestOptions.GiteaRoot`. Now it detects the root directory by current
working directory.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2023-09-28 01:38:53 +00:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						7047df36d4 
					 
					
						
						
							
							Another round of db.DefaultContext refactor ( #27103 )  
						
						... 
						
						
						
						Part of #27065 
---------
Co-authored-by: KN4CK3R <admin@oldschoolhack.me > 
						
						
					 
					
						2023-09-25 13:17:37 +00:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						f91dbbba98 
					 
					
						
						
							
							Next round of db.DefaultContext refactor ( #27089 )  
						
						... 
						
						
						
						Part of #27065  
						
						
					 
					
						2023-09-16 14:39:12 +00:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						c548dde205 
					 
					
						
						
							
							More refactoring of db.DefaultContext ( #27083 )  
						
						... 
						
						
						
						Next step of #27065  
						
						
					 
					
						2023-09-15 06:13:19 +00:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						76659b1114 
					 
					
						
						
							
							Reduce usage of db.DefaultContext ( #27073 )  
						
						... 
						
						
						
						Part of #27065 
This reduces the usage of `db.DefaultContext`. I think I've got enough
files for the first PR. When this is merged, I will continue working on
this.
Considering how many files this PR affect, I hope it won't take to long
to merge, so I don't end up in the merge conflict hell.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2023-09-14 17:09:32 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						4f32abaf94 
					 
					
						
						
							
							move repository deletion to service layer ( #26948 )  
						
						... 
						
						
						
						Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2023-09-08 04:51:15 +00:00 
						 
				 
			
				
					
						
							
							
								Nanguan Lin 
							
						 
					 
					
						
						
							
						
						1ee4882b88 
					 
					
						
						
							
							Fix the missing repo count ( #26942 )  
						
						... 
						
						
						
						The commit
(958d148043😝 

BTW, the `leave` button is in a weird position 
						
						
					 
					
						2023-09-07 01:44:47 +00:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						958d148043 
					 
					
						
						
							
							Show always repo count in header ( #26842 )  
						
						... 
						
						
						
						A few pages don't load the repo count of an user/org, so it is not shown
in the header. This happens mostly on org pages, but the package
settings applies to the user page as well.
Before:

After:

Seen on #26826 
Regression of #25928  
						
						
					 
					
						2023-09-06 08:49:36 +00:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						0850be6750 
					 
					
						
						
							
							Fix the display of org level badges  ( #26504 )  
						
						... 
						
						
						
						Follow #24654  #22705  #24232 
In some pages we still have missing badges, for example:


 
						
						
					 
					
						2023-09-06 14:38:14 +08:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						e8aae43f56 
					 
					
						
						
							
							Move web/api context related testing function into a separate package ( #26859 )  
						
						... 
						
						
						
						Just like `models/unittest`, the testing helper functions should be in a
separate package: `contexttest`
And complete the TODO:
> // TODO: move this function to other packages, because it depends on
"models" package 
						
						
					 
					
						2023-09-01 11:26:07 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						e8b990999f 
					 
					
						
						
							
							Make "link-action" backend code respond correct JSON content ( #26680 )  
						
						... 
						
						
						
						Otherwise the `link-action` JS code couldn't parse the response.
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2023-08-23 17:36:57 +08:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						7f8028e5a1 
					 
					
						
						
							
							Fix display problems of members and teams unit ( #26363 )  
						
						... 
						
						
						
						Fix:
- display member count and team count in the menu bar

- Also display member unit in the menu bar if there are no hidden
members in public org

- hidden member board when there's no seeable members.
In this org, we only have hidden members: 

We will hidden the member board when doer is not the member of this org

Before:

If you click the number in the members board, you will access the
members page, which is not expected.

---------
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2023-08-15 16:00:35 +02:00 
						 
				 
			
				
					
						
							
							
								puni9869 
							
						 
					 
					
						
						
							
						
						cafce3b4b5 
					 
					
						
						
							
							Allow to archive labels ( #26478 )  
						
						... 
						
						
						
						## Archived labels 
This adds the structure to allow for archived labels.
Archived labels are, just like closed milestones or projects, a medium to hide information without deleting it.
It is especially useful if there are outdated labels that should no longer be used without deleting the label entirely.
## Changes
1. UI and API have been equipped with the support to mark a label as archived
2. The time when a label has been archived will be stored in the DB
## Outsourced for the future
There's no special handling for archived labels at the moment.
This will be done in the future.
## Screenshots


Part of https://github.com/go-gitea/gitea/issues/25237 
---------
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com > 
						
						
					 
					
						2023-08-14 11:56:14 +02:00 
						 
				 
			
				
					
						
							
							
								Denys Konovalov 
							
						 
					 
					
						
						
							
						
						ab78c39e41 
					 
					
						
						
							
							Refactor project templates ( #26448 )  
						
						... 
						
						
						
						This PR refactors a bunch of projects-related code, mostly the
templates.
The following things were done:
  - rename boards to columns in frontend code
  - use the new `ctx.Locale.Tr` method
  - cleanup template, remove useless newlines, classes, comments
  - merge org-/user and repo level project template together
    - move "new column" button into project toolbar
- move issue card (shared by projects and pinned issues) to shared
template, remove useless duplicated styles
- add search function to projects (to make the layout more similar to
milestones list where it is inherited from 😆 )
  - maybe more changes I forgot I've done 😆  
Closes  #24893 
After:



---------
Co-authored-by: silverwind <me@silverwind.io > 
						
						
					 
					
						2023-08-12 10:30:28 +00:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						9fc68b680f 
					 
					
						
						
							
							Fix 404 error when remove self from an organization ( #26362 )  
						
						... 
						
						
						
						Same to #24322  
Not only `leave` action but also `remove` action should check whether
user still belongs to the org. 
						
						
					 
					
						2023-08-12 07:02:22 +00:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						f3fbb7c67d 
					 
					
						
						
							
							Count only visible repos on profile ( #25928 )  
						
						... 
						
						
						
						Fixes  #25914  
					
						2023-08-11 13:08:05 -04:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
						
						dcd3a63128 
					 
					
						
						
							
							Move web JSON functions to web context and simplify code ( #26132 )  
						
						... 
						
						
						
						The JSONRedirect/JSONOK/JSONError functions were put into "Base" context
incorrectly, it would cause abuse.
Actually, they are for "web context" only, so, move them to the correct
place.
And by the way, use them to simplify old code: +75 -196 
						
						
					 
					
						2023-07-26 06:04:01 +00:00 
						 
				 
			
				
					
						
							
							
								JakobDev 
							
						 
					 
					
						
						
							
						
						6598d0291c 
					 
					
						
						
							
							Allow Organisations to have a E-Mail ( #25082 )  
						
						... 
						
						
						
						Resolves  #25057 
This adds a E-Mail field to Organisations. The E-Mail is just shown on
the Profile when it is visited by a logged in User. The E-mail is not
used for something else.
**Screenshots:**


---------
Co-authored-by: Denys Konovalov <kontakt@denyskon.de >
Co-authored-by: Denys Konovalov <privat@denyskon.de >
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
Co-authored-by: Giteabot <teabot@gitea.io > 
					
						2023-07-25 08:26:27 +00:00 
						 
				 
			
				
					
						
							
							
								hiifong 
							
						 
					 
					
						
						
							
						
						4628aa5251 
					 
					
						
						
							
							fix incorrect repo url when changed the case of ownername ( #25733 )  
						
						... 
						
						
						
						When only the case of the username changes and the new username is
consistent with the lowercase username of the old user name, update the
owner name of the repo, and keep the original logic consistent with
other conditions.
example: your username is `gitea`, lowercase username is `gitea`,repo
url is `.../gitea/{repo}`, you changed username to `Gitea` or `GiTea` or
other, but the lowercase username is still `gitea`, the repo url is
still `.../gitea/{repo}`.
this pr fixed it,keep username and repo url consistent.
Before:


After: 

 
						
						
					 
					
						2023-07-14 13:42:10 +08:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						8b89563bf1 
					 
					
						
						
							
							Fix empty project displayed in issue sidebar ( #25802 )  
						
						... 
						
						
						
						Before:

After:

This issue comes from the change in #25468 .
`LoadProject` will always return at least one record, so we use
`ProjectID` to check whether an issue is linked to a project in the old
code.
As other `issue.LoadXXX` functions, we need to check the return value
from `xorm.Session.Get`.
In recent unit tests, we only test `issueList.LoadAttributes()` but
don't test `issue.LoadAttributes()`. So I added a new test for
`issue.LoadAttributes()` in this PR.
---------
Co-authored-by: Denys Konovalov <privat@denyskon.de > 
						
						
					 
					
						2023-07-12 16:10:35 +02:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						44572e9243 
					 
					
						
						
							
							Fix incorrect oldest sort in project list ( #25806 )  
						
						... 
						
						
						
						sort type `oldest` should be `Asc`.
Added a test for this. 
						
						
					 
					
						2023-07-11 20:47:50 +02:00 
						 
				 
			
				
					
						
							
							
								puni9869 
							
						 
					 
					
						
						
							
						
						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 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
						
						88f835192d 
					 
					
						
						
							
							Replace interface{} with any ( #25686 )  
						
						... 
						
						
						
						Result of running `perl -p -i -e 's#interface\{\}#any#g' **/*` and `make fmt`.
Basically the same [as golang did](2580d0e08d 
						
						
					 
					
						2023-07-04 18:36:08 +00:00