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

18 lines
437 B
Plaintext

<%= 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>