mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
Finish watch backend
This commit is contained in:
@ -31,6 +31,7 @@ type Context struct {
|
||||
Repo struct {
|
||||
IsValid bool
|
||||
IsOwner bool
|
||||
IsWatching bool
|
||||
Repository *models.Repository
|
||||
Owner *models.User
|
||||
}
|
||||
|
@ -63,6 +63,7 @@ func RepoAssignment(redirect bool) martini.Handler {
|
||||
}
|
||||
|
||||
ctx.Repo.IsValid = true
|
||||
ctx.Repo.IsWatching = models.IsWatching(ctx.User.Id, repo.Id)
|
||||
ctx.Repo.Repository = repo
|
||||
|
||||
ctx.Data["IsRepositoryValid"] = true
|
||||
|
Reference in New Issue
Block a user