Redmine/app/views/repositories/_revision_graph.html.erb

15 lines
434 B
Plaintext
Raw Normal View History

<%= javascript_include_tag 'raphael.js' %>
<%= javascript_include_tag 'revision_graph.js' %>
<script type="text/javascript" charset="utf-8">
function revisionGraphHandler(){
drawRevisionGraph(
document.getElementById('holder'),
<%= commits.to_json.html_safe %>,
<%= space %>
);
}
$(document).ready(revisionGraphHandler);
$(window).resize(revisionGraphHandler);
</script>
<div id="holder" class="revision-graph"></div>