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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
26606aa2
Commit
26606aa2
authored
Mar 22, 2013
by
Sato Hiroyuki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix style of network graph.
refs #3258
parent
5f9d6549
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
app/assets/javascripts/branch-graph.js.coffee
app/assets/javascripts/branch-graph.js.coffee
+6
-6
No files found.
app/assets/javascripts/branch-graph.js.coffee
View file @
26606aa2
...
...
@@ -51,21 +51,21 @@ class BranchGraph
buildGraph
:
->
graphHeight
=
$
(
@
element
).
height
()
graphWidth
=
$
(
@
element
).
width
()
ch
=
Math
.
max
(
graphHeight
,
@
unitTime
*
@
mtime
+
10
0
)
cw
=
Math
.
max
(
graphWidth
,
@
unitSpace
*
@
mspace
+
26
0
)
ch
=
Math
.
max
(
graphHeight
,
@
offsetY
+
@
unitTime
*
@
mtime
+
15
0
)
cw
=
Math
.
max
(
graphWidth
,
@
offsetX
+
@
unitSpace
*
@
mspace
+
30
0
)
@
r
=
r
=
Raphael
(
@
element
.
get
(
0
),
cw
,
ch
)
top
=
r
.
set
()
cuday
=
0
cumonth
=
""
barHeight
=
Math
.
max
(
graphHeight
,
@
unitTime
*
@
days
.
length
+
320
)
r
.
rect
(
0
,
0
,
2
0
,
barHeight
).
attr
fill
:
"#222"
r
.
rect
(
2
0
,
0
,
20
,
barHeight
).
attr
fill
:
"#444"
r
.
rect
(
0
,
0
,
2
6
,
barHeight
).
attr
fill
:
"#222"
r
.
rect
(
2
6
,
0
,
20
,
barHeight
).
attr
fill
:
"#444"
for
day
,
mm
in
@
days
if
cuday
isnt
day
[
0
]
# Dates
r
.
text
(
3
0
,
@
offsetY
+
@
unitTime
*
mm
,
day
[
0
])
r
.
text
(
3
6
,
@
offsetY
+
@
unitTime
*
mm
,
day
[
0
])
.
attr
(
font
:
"12px Monaco, monospace"
fill
:
"#DDD"
...
...
@@ -74,7 +74,7 @@ class BranchGraph
if
cumonth
isnt
day
[
1
]
# Months
r
.
text
(
1
0
,
@
offsetY
+
@
unitTime
*
mm
,
day
[
1
])
r
.
text
(
1
3
,
@
offsetY
+
@
unitTime
*
mm
,
day
[
1
])
.
attr
(
font
:
"12px Monaco, monospace"
fill
:
"#EEE"
...
...
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