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
Boxiang Sun
gitlab-ce
Commits
40576b87
Commit
40576b87
authored
Dec 05, 2012
by
Koen Punt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #1509 by converting the entities in js
Converted BranchGraph to some sort of Class
parent
12b4bb59
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
173 additions
and
118 deletions
+173
-118
app/views/projects/graph.html.haml
app/views/projects/graph.html.haml
+6
-5
vendor/assets/javascripts/branch-graph.js
vendor/assets/javascripts/branch-graph.js
+167
-113
No files found.
app/views/projects/graph.html.haml
View file @
40576b87
...
...
@@ -2,13 +2,14 @@
%br
.graph_holder
%h4
%small
You can move around the graph by using arrow keys.
%small
You can move around the graph by using
the
arrow keys.
#holder
.graph
:javascript
var
c
hunk1
=
{
commits
:
#{
@commits_json
}
};
var
days
=
#{
@days_json
}
;
initGraph
(
);
var
c
ommits
=
#{
@commits_json
}
,
days
=
#{
@days_json
}
;
var
branch_graph
=
new
BranchGraph
(
days
,
commits
);
$
(
function
(){
branchGraph
(
$
(
"
#holder
"
)[
0
]);
branch
_graph
.
build
Graph
(
$
(
"
#holder
"
)[
0
]);
GraphNav
.
init
();
});
vendor/assets/javascripts/branch-graph.js
View file @
40576b87
This diff is collapsed.
Click to expand it.
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