mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	new quick start page
This commit is contained in:
		| @@ -350,22 +350,25 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler { | ||||
| 			ctx.Data["GoGetImport"] = fmt.Sprintf("%s/%s/%s", setting.Domain, u.Name, repo.Name) | ||||
| 		} | ||||
|  | ||||
| 		if ctx.IsSigned { | ||||
| 			ctx.Data["IsWatchingRepo"] = models.IsWatching(ctx.User.Id, repo.ID) | ||||
| 			ctx.Data["IsStaringRepo"] = models.IsStaring(ctx.User.Id, repo.ID) | ||||
| 		} | ||||
|  | ||||
| 		// repo is bare and display enable | ||||
| 		if ctx.Repo.Repository.IsBare { | ||||
| 			log.Debug("Bare repository: %s", ctx.Repo.RepoLink) | ||||
| 			// NOTE: to prevent templating error | ||||
| 			ctx.Data["BranchName"] = "" | ||||
| 			if displayBare { | ||||
| 				if !ctx.Repo.IsAdmin() { | ||||
| 					ctx.Flash.Info(ctx.Tr("repo.repo_is_empty"), true) | ||||
| 				} | ||||
| 				ctx.HTML(200, "repo/bare") | ||||
| 			} | ||||
| 			return | ||||
| 		} | ||||
|  | ||||
| 		if ctx.IsSigned { | ||||
| 			ctx.Data["IsWatchingRepo"] = models.IsWatching(ctx.User.Id, repo.ID) | ||||
| 			ctx.Data["IsStaringRepo"] = models.IsStaring(ctx.User.Id, repo.ID) | ||||
| 		} | ||||
|  | ||||
| 		ctx.Data["TagName"] = ctx.Repo.TagName | ||||
| 		brs, err := ctx.Repo.GitRepo.GetBranches() | ||||
| 		if err != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user