forked from tangled.org/core
this repo has no description

appview: pages: introduce `ForkStatus` construct

Changed files
+14
appview
pages
+14
appview/pages/pages.go
···
return p.executePlain("repo/fragments/repoDescription", w, params)
}
type RepoIndexParams struct {
LoggedInUser *oauth.User
RepoInfo repoinfo.RepoInfo
···
return p.executePlain("repo/fragments/repoDescription", w, params)
}
+
type ForkStatus int
+
+
const (
+
UpToDate ForkStatus = 0
+
FastForwardable = 1
+
Conflict = 2
+
MissingBranch = 3
+
)
+
+
type ForkInfo struct {
+
IsFork bool
+
Status ForkStatus
+
}
+
type RepoIndexParams struct {
LoggedInUser *oauth.User
RepoInfo repoinfo.RepoInfo