Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
e6707f6f
Commit
e6707f6f
authored
Apr 08, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6720 from thmo/6-7-stable
Fix avatars in the network graph for relative-url setups.
parents
f88d30fa
5bae15be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/branch-graph.js.coffee
app/assets/javascripts/branch-graph.js.coffee
+2
-2
No files found.
app/assets/javascripts/branch-graph.js.coffee
View file @
e6707f6f
...
...
@@ -201,7 +201,7 @@ class BranchGraph
stroke
:
@
colors
[
commit
.
space
]
"stroke-width"
:
2
)
r
.
image
(
commit
.
author
.
icon
,
avatar_box_x
,
avatar_box_y
,
20
,
20
)
r
.
image
(
gon
.
relative_url_root
+
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"
...
...
@@ -274,7 +274,7 @@ class BranchGraph
Raphael
::
commitTooltip
=
(
x
,
y
,
commit
)
->
boxWidth
=
300
boxHeight
=
200
icon
=
@
image
(
commit
.
author
.
icon
,
x
,
y
,
20
,
20
)
icon
=
@
image
(
gon
.
relative_url_root
+
commit
.
author
.
icon
,
x
,
y
,
20
,
20
)
nameText
=
@
text
(
x
+
25
,
y
+
10
,
commit
.
author
.
name
)
idText
=
@
text
(
x
,
y
+
35
,
commit
.
id
)
messageText
=
@
text
(
x
,
y
+
50
,
commit
.
message
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment