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
c8968260
Commit
c8968260
authored
Nov 13, 2011
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Graph: is done. v1
parent
94690bd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
app/assets/stylesheets/projects.css.scss
app/assets/stylesheets/projects.css.scss
+1
-4
lib/assets/javascripts/branch-graph.js
lib/assets/javascripts/branch-graph.js
+5
-4
No files found.
app/assets/stylesheets/projects.css.scss
View file @
c8968260
...
...
@@ -473,8 +473,5 @@ body.project-page table .commit {
border
:
solid
1px
#999
;
cursor
:
move
;
height
:
70%
;
overflow
:
scroll
;
position
:
absolute
;
width
:
auto
;
margin
:
6ex
3ex
0ex
0ex
;
overflow
:
hidden
;
}
lib/assets/javascripts/branch-graph.js
View file @
c8968260
...
...
@@ -37,16 +37,17 @@ function branchGraph(holder) {
r
=
Raphael
(
"
holder
"
,
cw
,
ch
),
top
=
r
.
set
();
var
cuday
=
0
,
cumonth
=
""
;
r
.
rect
(
0
,
0
,
days
.
length
*
20
+
20
,
40
).
attr
({
fill
:
"
#999
"
});
r
.
rect
(
0
,
0
,
days
.
length
*
20
+
20
,
20
).
attr
({
fill
:
"
#474D57
"
});
r
.
rect
(
0
,
20
,
days
.
length
*
20
+
20
,
20
).
attr
({
fill
:
"
#f7f7f7
"
});
for
(
mm
=
0
;
mm
<
days
.
length
;
mm
++
)
{
if
(
days
[
mm
]
!=
null
){
if
(
cuday
!=
days
[
mm
][
0
]){
r
.
text
(
10
+
mm
*
20
,
30
,
days
[
mm
][
0
]).
attr
({
font
:
"
12px Fontin-Sans, Arial
"
,
fill
:
"
#444
"
});
r
.
text
(
10
+
mm
*
20
,
30
,
days
[
mm
][
0
]).
attr
({
font
:
"
12px Fontin-Sans, Arial
"
,
fill
:
"
#444
"
});
cuday
=
days
[
mm
][
0
]
}
if
(
cumonth
!=
days
[
mm
][
1
]){
r
.
text
(
10
+
mm
*
20
,
10
,
days
[
mm
][
1
]).
attr
({
font
:
"
12px Fontin-Sans, Arial
"
,
fill
:
"
#444
"
});
r
.
text
(
10
+
mm
*
20
,
10
,
days
[
mm
][
1
]).
attr
({
font
:
"
12px Fontin-Sans, Arial
"
,
fill
:
"
#444
"
});
cumonth
=
days
[
mm
][
1
]
}
...
...
@@ -62,7 +63,7 @@ function branchGraph(holder) {
if
(
shortrefs
.
length
>
15
){
shortrefs
=
shortrefs
.
substr
(
0
,
13
)
+
"
...
"
;
}
var
t
=
r
.
text
(
x
+
5
,
y
+
5
,
shortrefs
).
attr
({
font
:
"
12px Fontin-Sans, Arial
"
,
fill
:
"
#666
"
,
var
t
=
r
.
text
(
x
+
5
,
y
+
5
,
shortrefs
).
attr
({
font
:
"
12px Fontin-Sans, Arial
"
,
fill
:
"
#666
"
,
title
:
longrefs
,
cursor
:
"
pointer
"
,
rotation
:
"
90
"
});
var
textbox
=
t
.
getBBox
();
...
...
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