2012-09-11 21:01:45 +04:00
|
|
|
<%= javascript_tag do %>
|
2012-07-22 17:29:26 +04:00
|
|
|
function revisionGraphHandler(){
|
|
|
|
drawRevisionGraph(
|
|
|
|
document.getElementById('holder'),
|
|
|
|
<%= commits.to_json.html_safe %>,
|
|
|
|
<%= space %>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
$(document).ready(revisionGraphHandler);
|
|
|
|
$(window).resize(revisionGraphHandler);
|
2012-09-11 21:01:45 +04:00
|
|
|
<% end %>
|
|
|
|
|
2012-02-14 10:27:23 +04:00
|
|
|
<div id="holder" class="revision-graph"></div>
|
2012-09-11 20:59:30 +04:00
|
|
|
|
|
|
|
<% content_for :header_tags do %>
|
|
|
|
<%= javascript_include_tag 'raphael' %>
|
|
|
|
<%= javascript_include_tag 'revision_graph' %>
|
|
|
|
<% end %>
|