summaryrefslogtreecommitdiff
path: root/lib/assets
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2011-11-13 15:12:52 +0200
committerValery Sizov <vsv2711@gmail.com>2011-11-13 15:12:52 +0200
commitc89682605ff36b9c7659ae204ebd08c7c9c7951c (patch)
tree396ce4c2670c722aa5011abd23ea3d9109f14477 /lib/assets
parent94690bd2c4b30116aeee42fab5f97d5023ac750f (diff)
downloadgitlab-ce-c89682605ff36b9c7659ae204ebd08c7c9c7951c.tar.gz
Graph: is done. v1
Diffstat (limited to 'lib/assets')
-rw-r--r--lib/assets/javascripts/branch-graph.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/assets/javascripts/branch-graph.js b/lib/assets/javascripts/branch-graph.js
index f8b73660d11..8c45aefe688 100644
--- a/lib/assets/javascripts/branch-graph.js
+++ b/lib/assets/javascripts/branch-graph.js
@@ -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();