Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
62a135e348ce
Commit
a19e3d89
authored
Mar 20, 2013
by
Sato Hiroyuki
Browse files
Display icon and commit message on network graph.
parent
29c4c285da66
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/assets/javascripts/branch-graph.js.coffee
View file @
62a135e3
...
...
@@ -7,7 +7,7 @@ class BranchGraph
@
colors
=
[
"#000"
]
@
offsetX
=
120
@
offsetY
=
20
@
unitTime
=
2
0
@
unitTime
=
3
0
@
unitSpace
=
10
@
load
()
...
...
@@ -179,6 +179,15 @@ class BranchGraph
fill
:
@
colors
[
commit
.
space
]
stroke
:
"none"
)
r
.
rect
(
@
offsetX
+
@
unitSpace
*
@
mspace
+
10
,
y
-
10
,
20
,
20
).
attr
(
fill
:
"url(
#{
commit
.
author
.
icon
}
)"
stroke
:
@
colors
[
commit
.
space
]
"stroke-width"
:
2
)
r
.
text
(
@
offsetX
+
@
unitSpace
*
@
mspace
+
35
,
y
,
commit
.
message
.
split
(
"
\n
"
)[
0
]).
attr
(
"text-anchor"
:
"start"
font
:
"14px Monaco, monospace"
)
drawLines
:
(
x
,
y
,
commit
)
->
r
=
@
r
...
...
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