From f2a817f040315f5defaa4c9cf32b1a4455fe6df5 Mon Sep 17 00:00:00 2001 From: Leo Antunes Date: Fri, 17 Apr 2015 11:05:52 +0200 Subject: [PATCH] do not prepend relative_url_root to avatar The commit.author.icon variable contains a full URL, which gets broken when prepended by the relative_url_root setting (generating hrefs like "/gitlabhttps://...". --- app/assets/javascripts/branch-graph.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/branch-graph.js.coffee b/app/assets/javascripts/branch-graph.js.coffee index 010a2b0e42b..917228bd276 100644 --- a/app/assets/javascripts/branch-graph.js.coffee +++ b/app/assets/javascripts/branch-graph.js.coffee @@ -214,7 +214,7 @@ class @BranchGraph stroke: @colors[commit.space] "stroke-width": 2 ) - r.image(gon.relative_url_root + commit.author.icon, avatar_box_x, avatar_box_y, 20, 20) + r.image(commit.author.icon, avatar_box_x, avatar_box_y, 20, 20) r.text(@offsetX + @unitSpace * @mspace + 35, y, commit.message.split("\n")[0]).attr( "text-anchor": "start" font: "14px Monaco, monospace"