From a07cc0df76056ce2be1d8a89f38416cf511dd03b Mon Sep 17 00:00:00 2001 From: zeripath Date: Sat, 20 Jun 2020 20:29:44 +0100 Subject: Handle multiple merges in gitgraph.js (#11996) * Handle multiple merges in gitgraph.js There is a bug in web_src/js/vendor/gitgraph.js whereby it fails to handle multiple merges in a single commit correctly. This PR adds changes to make this work. Fix #11981 Signed-off-by: Andrew Thornton * Update web_src/js/vendor/gitgraph.js --- templates/repo/graph.tmpl | 64 +++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 33 deletions(-) (limited to 'templates') diff --git a/templates/repo/graph.tmpl b/templates/repo/graph.tmpl index 5f4d9f1d62..493ac7a696 100644 --- a/templates/repo/graph.tmpl +++ b/templates/repo/graph.tmpl @@ -2,39 +2,37 @@
{{template "repo/header" .}}
-
-

{{.i18n.Tr "repo.commit_graph"}}

-
- -
    - {{ range .Graph }} -
  • {{ .GraphAcii -}}
  • - {{ end }} -
-
-
-
-
    - {{ range .Graph }} -
  • - {{ if .OnlyRelation }} - - {{ else }} - - {{ .ShortRev}} - - {{.Branch}} - {{RenderCommitMessage .Subject $.RepoLink $.Repository.ComposeMetas}} by - - {{.Author}} - - {{.Date}} - {{ end }} -
  • - {{ end }} -
-
-
+
+

{{.i18n.Tr "repo.commit_graph"}}

+
+ +
    + {{ range .Graph }} +
  • {{ .GraphAcii -}}
  • + {{ end }} +
+
+
+
+
    + {{ range .Graph }} +
  • + {{ if .OnlyRelation }} + + {{ else }} + + {{ .ShortRev}} + + {{.Branch}} + {{RenderCommitMessage .Subject $.RepoLink $.Repository.ComposeMetas}} by + {{.Author}} + {{.Date}} + {{ end }} +
  • + {{ end }} +
+
+
{{template "base/paginate" .}} -- cgit v1.2.3