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

14 lines
419 B
Plaintext
Raw Normal View History

<%= javascript_include_tag 'raphael.js' %>
<%= javascript_include_tag 'revision_graph.js' %>
<script type="text/javascript" charset="utf-8">
Event.observe(window, 'load', function(){
revisionGraph(
document.getElementById('holder'),
<%= commits.to_json.html_safe %>,
<%= space %>);
});
</script>
<div id="holder" class="revision-graph" style="width: <%= (space + 1) * 20 %>px;"></div>