Move some files into models' sub packages (#20262)
* Move some files into models' sub packages * Move functions * merge main branch * Fix check * fix check * Fix some tests * Fix lint * Fix lint * Revert lint changes * Fix error comments * Fix lint Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
		
							parent
							
								
									4a4bfafa23
								
							
						
					
					
						commit
						1d8543e7db
					
				
					 154 changed files with 1763 additions and 1738 deletions
				
			
		| 
						 | 
				
			
			@ -15,7 +15,7 @@ import (
 | 
			
		|||
	"strings"
 | 
			
		||||
	"time"
 | 
			
		||||
 | 
			
		||||
	"code.gitea.io/gitea/models"
 | 
			
		||||
	activities_model "code.gitea.io/gitea/models/activities"
 | 
			
		||||
	"code.gitea.io/gitea/modules/base"
 | 
			
		||||
	"code.gitea.io/gitea/modules/context"
 | 
			
		||||
	"code.gitea.io/gitea/modules/git"
 | 
			
		||||
| 
						 | 
				
			
			@ -128,7 +128,7 @@ func Dashboard(ctx *context.Context) {
 | 
			
		|||
	ctx.Data["Title"] = ctx.Tr("admin.dashboard")
 | 
			
		||||
	ctx.Data["PageIsAdmin"] = true
 | 
			
		||||
	ctx.Data["PageIsAdminDashboard"] = true
 | 
			
		||||
	ctx.Data["Stats"] = models.GetStatistic()
 | 
			
		||||
	ctx.Data["Stats"] = activities_model.GetStatistic()
 | 
			
		||||
	ctx.Data["NeedUpdate"] = updatechecker.GetNeedUpdate()
 | 
			
		||||
	ctx.Data["RemoteVersion"] = updatechecker.GetRemoteVersion()
 | 
			
		||||
	// FIXME: update periodically
 | 
			
		||||
| 
						 | 
				
			
			@ -144,7 +144,7 @@ func DashboardPost(ctx *context.Context) {
 | 
			
		|||
	ctx.Data["Title"] = ctx.Tr("admin.dashboard")
 | 
			
		||||
	ctx.Data["PageIsAdmin"] = true
 | 
			
		||||
	ctx.Data["PageIsAdminDashboard"] = true
 | 
			
		||||
	ctx.Data["Stats"] = models.GetStatistic()
 | 
			
		||||
	ctx.Data["Stats"] = activities_model.GetStatistic()
 | 
			
		||||
	updateSystemStatus()
 | 
			
		||||
	ctx.Data["SysStatus"] = sysStatus
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue