Commit 5b123dbf7f587a58db2b45390dff43fa167dbb04
Committed by
Marin Jankovski
1 parent
5830d672
Exists in
spb-stable
and in
3 other branches
Fix avatars in the network graph for relative-url setups.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/assets/javascripts/branch-graph.js.coffee
| ... | ... | @@ -201,7 +201,7 @@ class BranchGraph |
| 201 | 201 | stroke: @colors[commit.space] |
| 202 | 202 | "stroke-width": 2 |
| 203 | 203 | ) |
| 204 | - r.image(commit.author.icon, avatar_box_x, avatar_box_y, 20, 20) | |
| 204 | + r.image(gon.relative_url_root + commit.author.icon, avatar_box_x, avatar_box_y, 20, 20) | |
| 205 | 205 | r.text(@offsetX + @unitSpace * @mspace + 35, y, commit.message.split("\n")[0]).attr( |
| 206 | 206 | "text-anchor": "start" |
| 207 | 207 | font: "14px Monaco, monospace" |
| ... | ... | @@ -274,7 +274,7 @@ class BranchGraph |
| 274 | 274 | Raphael::commitTooltip = (x, y, commit) -> |
| 275 | 275 | boxWidth = 300 |
| 276 | 276 | boxHeight = 200 |
| 277 | - icon = @image(commit.author.icon, x, y, 20, 20) | |
| 277 | + icon = @image(gon.relative_url_root + commit.author.icon, x, y, 20, 20) | |
| 278 | 278 | nameText = @text(x + 25, y + 10, commit.author.name) |
| 279 | 279 | idText = @text(x, y + 35, commit.id) |
| 280 | 280 | messageText = @text(x, y + 50, commit.message) | ... | ... |