2012-02-04 18:02:31 +04:00
|
|
|
<%= javascript_include_tag 'raphael.js' %>
|
|
|
|
<%= javascript_include_tag 'revision_graph.js' %>
|
2011-11-03 15:36:12 +04:00
|
|
|
|
2012-02-04 18:02:31 +04:00
|
|
|
<script type="text/javascript" charset="utf-8">
|
2012-02-14 00:20:18 +04:00
|
|
|
|
|
|
|
['load', 'resize'].each(function(window_event) {
|
|
|
|
|
|
|
|
Event.observe(window, window_event, function(){
|
|
|
|
|
|
|
|
drawRevisionGraph(
|
|
|
|
document.getElementById('holder'),
|
|
|
|
<%= commits.to_json.html_safe %>,
|
|
|
|
<%= space %>);
|
|
|
|
});
|
2012-02-04 18:02:31 +04:00
|
|
|
});
|
2011-11-03 15:36:12 +04:00
|
|
|
</script>
|
|
|
|
|
2012-02-14 10:27:23 +04:00
|
|
|
<div id="holder" class="revision-graph"></div>
|