BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
175e09f1
Commit
175e09f1
authored
Mar 19, 2013
by
Sato Hiroyuki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change graph element size.
parent
351c9521
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
branch-graph.js.coffee
app/assets/javascripts/branch-graph.js.coffee
+4
-4
graph.scss
app/assets/stylesheets/sections/graph.scss
+1
-1
No files found.
app/assets/javascripts/branch-graph.js.coffee
View file @
175e09f1
...
...
@@ -47,14 +47,14 @@ class BranchGraph
buildGraph
:
->
graphWidth
=
$
(
@
element
).
width
()
ch
=
@
mspace
*
2
0
+
100
ch
=
@
mspace
*
1
0
+
100
cw
=
Math
.
max
(
graphWidth
,
@
mtime
*
20
+
260
)
r
=
Raphael
(
@
element
.
get
(
0
),
cw
,
ch
)
top
=
r
.
set
()
cuday
=
0
cumonth
=
""
@
offsetX
=
20
@
offsetY
=
6
0
@
offsetY
=
5
0
barWidth
=
Math
.
max
(
graphWidth
,
@
days
.
length
*
20
+
320
)
@
scrollLeft
=
cw
@
raphael
=
r
...
...
@@ -64,7 +64,7 @@ class BranchGraph
for
day
,
mm
in
@
days
if
cuday
isnt
day
[
0
]
# Dates
r
.
text
(
@
offsetX
+
mm
*
20
,
3
1
,
day
[
0
])
r
.
text
(
@
offsetX
+
mm
*
20
,
3
0
,
day
[
0
])
.
attr
(
font
:
"12px Monaco, monospace"
fill
:
"#DDD"
...
...
@@ -73,7 +73,7 @@ class BranchGraph
if
cumonth
isnt
day
[
1
]
# Months
r
.
text
(
@
offsetX
+
mm
*
20
,
1
1
,
day
[
1
])
r
.
text
(
@
offsetX
+
mm
*
20
,
1
0
,
day
[
1
])
.
attr
(
font
:
"12px Monaco, monospace"
fill
:
"#EEE"
...
...
app/assets/stylesheets/sections/graph.scss
View file @
175e09f1
...
...
@@ -12,7 +12,7 @@
.graph
{
background
:
#f1f1f1
;
cursor
:
move
;
height
:
70%
;
height
:
500px
;
overflow
:
hidden
;
}
}
...
...
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