wxiaoguang 
							
						 
					 
					
						
						
							
						
						667427b4b9 
					 
					
						
						
							
							Fix project description rendering for org ( #30587 ) ( #30599 )  
						
						... 
						
						
						
						Backport #30587 
Manually tested with 1.21:
 
						
						
					 
					
						2024-04-19 13:28:18 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						5667ef9aab 
					 
					
						
						
							
							Add missing database transaction for new issue ( #29490 ) ( #29607 )  
						
						... 
						
						
						
						When creating an issue, inserting issue, assign users and set project
should be in the same transaction.
Backport #29490  
						
						
					 
					
						2024-03-05 16:37:55 +00:00 
						 
				 
			
				
					
						
							
							
								Giteabot 
							
						 
					 
					
						
						
							
						
						f13a294b47 
					 
					
						
						
							
							More db.DefaultContext refactor ( #27265 ) ( #27347 )  
						
						... 
						
						
						
						Backport #27265  by @JakobDev
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.
Co-authored-by: JakobDev <jakobdev@gmx.de > 
						
						
					 
					
						2023-09-29 13:35:01 +00: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 
						 
				 
			
				
					
						
							
							
								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 
						 
				 
			
				
					
						
							
							
								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 
						 
				 
			
				
					
						
							
							
								Zettat123 
							
						 
					 
					
						
						
							
						
						ff140d4050 
					 
					
						
						
							
							Fix the nil pointer when assigning issues to projects ( #25665 )  
						
						... 
						
						
						
						Fixes  #25649 
Caused by #25468  
					
						2023-07-04 10:26:24 +00:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						083818cb85 
					 
					
						
						
							
							Improve loadprojects for issue list ( #25468 )  
						
						
						
						
					 
					
						2023-06-24 15:31:28 +00:00 
						 
				 
			
				
					
						
							
							
								delvh 
							
						 
					 
					
						
						
							
						
						bf27fc3596 
					 
					
						
						
							
							Merge new project templates into one ( #24985 )  
						
						... 
						
						
						
						Additionally simplify the `new project` template slightly.
Review hint: Disable whitespace changes.
<details><summary>Before</summary>
## New repo project

## Edit repo project

## New user/org project

## Edit user/org project

</details>
<details><summary>After</summary>
## New repo project

## Edit repo project

## New user/org project

## Edit user/org project

</details>
---------
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2023-05-31 08:50:18 +02:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						f5b70a029c 
					 
					
						
						
							
							Fix close org projects ( #24588 )  
						
						... 
						
						
						
						A part of #22865 
We can not close org projects now. This PR will fix it. 
						
						
					 
					
						2023-05-08 12:19:27 +00:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						f30cc9faa9 
					 
					
						
						
							
							Add unset default project column ( #23531 )  
						
						... 
						
						
						
						Close: https://github.com/go-gitea/gitea/issues/23401  
						
						
					 
					
						2023-04-19 10:28:28 -04:00 
						 
				 
			
				
					
						
							
							
								Hester Gong 
							
						 
					 
					
						
						
							
						
						6a4be2cb6a 
					 
					
						
						
							
							Add cardtype to org/user level project on creation, edit and view ( #24043 )  
						
						... 
						
						
						
						Part of #23318 
The way to fix the missing cardtype for user/org level projects in this
PR is to port the cardtype related part from #22112  to org/user level
projects' template and router functions.
Before:
<img width="1135" alt="截屏2023-04-11 13 55 49"
src="https://user-images.githubusercontent.com/17645053/231069068-ba897129-ae90-4aa0-9b0f-468bf5c65375.png ">
<img width="1131" alt="截屏2023-04-11 13 55 59"
src="https://user-images.githubusercontent.com/17645053/231069084-279f6681-5a10-42da-b5a8-2b0ba47c7078.png ">
After:
Create
<img width="835" alt="截屏2023-04-11 13 27 16"
src="https://user-images.githubusercontent.com/17645053/231064445-0d6e12bd-5725-48db-a102-80e7472757c2.png ">
Edit
<img width="852" alt="截屏2023-04-11 13 27 05"
src="https://user-images.githubusercontent.com/17645053/231064503-c70525cd-1038-43ec-8d93-8b8d95d183d4.png ">
View
<img width="1329" alt="截屏2023-04-11 13 26 56"
src="https://user-images.githubusercontent.com/17645053/231064529-26023c85-698b-4b2e-af02-45f9820c77ec.png ">
Co-authored-by: Giteabot <teabot@gitea.io > 
						
						
					 
					
						2023-04-11 14:28:40 -04:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						8bc8ca1953 
					 
					
						
						
							
							Improve GetBoards and getDefaultBoard ( #22981 )  
						
						... 
						
						
						
						Change 
`GetBoards(ctx context.Context, projectID int64)`
to
`(p *Project) GetBoards(ctx context.Context) (BoardList, error)`
`getDefaultBoard` is same. 
						
						
					 
					
						2023-04-09 22:07:23 +08:00 
						 
				 
			
				
					
						
							
							
								sillyguodong 
							
						 
					 
					
						
						
							
						
						d02e83a2c3 
					 
					
						
						
							
							Fix cancel button in the page of project edit not work ( #23655 )  
						
						... 
						
						
						
						Before, in project edit page, the cancel button is not work.
https://user-images.githubusercontent.com/33891828/227182731-6478e29f-0e52-48c4-beb0-6a7d1dda6a1d.mov 
1. The wrong classname `cancel` was added to the `<a>` tag. That
classname caused the default click event of `<a>` tag to be cancelled.
Because we have the following settings in the global. So I remove the
classname `cancel`.
9be90a5875/web_src/js/features/common-global.js (L325-L327)https://user-images.githubusercontent.com/33891828/227187326-c653c6d6-9715-440f-a732-ba0a6f012c81.mov  
						
						
					 
					
						2023-03-24 16:37:56 +08:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						8e45fcb63a 
					 
					
						
						
							
							Do not store user projects as organization projects ( #23353 )  
						
						... 
						
						
						
						A part of https://github.com/go-gitea/gitea/pull/22865 
At first, I think we do not need 3 ProjectTypes, as we can check user
type, but it seems that it is not database friendly.
---------
Co-authored-by: delvh <dev.lh@web.de >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: 6543 <6543@obermui.de > 
						
						
					 
					
						2023-03-17 21:07:23 +08:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						cf29ee6dd2 
					 
					
						
						
							
							Add missing tabs to org projects page ( #22705 )  
						
						... 
						
						
						
						Fixes https://github.com/go-gitea/gitea/issues/22676 
Context Data `IsOrganizationMember` and `IsOrganizationOwner` is used to
control the visibility of `people` and `team` tab.
2871ea0809/templates/org/menu.tmpl (L19-L40) 
						
						
					 
					
						2023-03-10 09:18:20 -06:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						e6df743eca 
					 
					
						
						
							
							Rename canWriteUnit to canWriteProjects ( #23386 )  
						
						... 
						
						
						
						A part of https://github.com/go-gitea/gitea/pull/22865  
						
						
					 
					
						2023-03-09 13:57:20 -06:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						689770c928 
					 
					
						
						
							
							Fix incorrect NotFound conditions in org/projects.go ( #23384 )  
						
						... 
						
						
						
						A part of https://github.com/go-gitea/gitea/pull/22865 
user/org project's `RepoID` is always 0, we need to check `OwnerID` 
						
						
					 
					
						2023-03-09 10:59:50 -06:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						e52ac62d8e 
					 
					
						
						
							
							Redirect to project again after editing it ( #23326 )  
						
						... 
						
						
						
						A part of https://github.com/go-gitea/gitea/pull/22865 
We have edit buttons in projects list page and project view page.
But after user edit a project, it will always redirect to the projects
list page. 
						
						
					 
					
						2023-03-09 08:38:29 -06:00 
						 
				 
			
				
					
						
							
							
								yp05327 
							
						 
					 
					
						
						
							
						
						e7b89888e1 
					 
					
						
						
							
							Fix incorrect redirect link of delete org project ( #23327 )  
						
						... 
						
						
						
						A part of https://github.com/go-gitea/gitea/pull/22865/commits 
The old code will cause 500 error. 
						
						
					 
					
						2023-03-06 12:05:26 -06:00 
						 
				 
			
				
					
						
							
							
								Nathaniel Sabanski 
							
						 
					 
					
						
						
							
						
						fb1a2a13f0 
					 
					
						
						
							
							Preview images for Issue cards in Project Board view ( #22112 )  
						
						... 
						
						
						
						Original Issue: https://github.com/go-gitea/gitea/issues/22102 
This addition would be a big benefit for design and art teams using the
issue tracking.
The preview will be the latest "image type" attachments on an issue-
simple, and allows for automatic updates of the cover image as issue
progress is made!
This would make Gitea competitive with Trello... wouldn't it be amazing
to say goodbye to Atlassian products? Ha.
First image is the most recent, the SQL will fetch up to 5 latest images
(URL string).
All images supported by browsers plus upcoming formats: *.avif *.bmp
*.gif *.jpg *.jpeg *.jxl *.png *.svg *.webp
The CSS will try to center-align images until it cannot, then it will
left align with overflow hidden. Single images get to be slightly
larger!
Tested so far on: Chrome, Firefox, Android Chrome, Android Firefox.
Current revision with light and dark themes:


---------
Co-authored-by: Jason Song <i@wolfogre.com >
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com >
Co-authored-by: delvh <dev.lh@web.de > 
						
						
					 
					
						2023-02-11 16:12:41 +08:00 
						 
				 
			
				
					
						
							
							
								Lunny Xiao 
							
						 
					 
					
						
						
							
						
						6fe3c8b398 
					 
					
						
						
							
							Support org/user level projects ( #22235 )  
						
						... 
						
						
						
						Fix  #13405 
<img width="1151" alt="image"
src="https://user-images.githubusercontent.com/81045/209442911-7baa3924-c389-47b6-b63b-a740803e640e.png ">
Co-authored-by: 6543 <6543@obermui.de > 
					
						2023-01-20 19:42:33 +08:00