mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 21:04:55 +02:00
Implement Split Diff-View
- Unified/Inline Diff-View Selectable
This commit is contained in:
1 parent
7392b6a755
commit
0df39b33eb
7 files changed
+243
-58
No files matched your search
@@ -168,6 +168,7 @@ func Diff(ctx *middleware.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
ctx.Data["Style"] = ctx.Query("style") == "split"
|
||||
ctx.Data["Username"] = userName
|
||||
ctx.Data["Reponame"] = repoName
|
||||
ctx.Data["IsImageFile"] = commit.IsImageFile
|
||||
@@ -213,6 +214,7 @@ func CompareDiff(ctx *middleware.Context) {
|
||||
}
|
||||
commits = models.ValidateCommitsWithEmails(commits)
|
||||
|
||||
ctx.Data["Style"] = ctx.Query("style") == "split"
|
||||
ctx.Data["CommitRepoLink"] = ctx.Repo.RepoLink
|
||||
ctx.Data["Commits"] = commits
|
||||
ctx.Data["CommitCount"] = commits.Len()
|
||||
|
||||
Reference in new issue
Block a user