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

19 lines
455 B
Plaintext
Raw Normal View History

2013-08-01 10:33:49 +08:00
<%= javascript_tag do %>
function revisionGraphHandler(){
drawRevisionGraph(
document.getElementById('holder'),
<%= commits.to_json.html_safe %>,
<%= space %>
);
}
$(document).ready(revisionGraphHandler);
$(window).resize(revisionGraphHandler);
<% end %>
<div id="holder" class="revision-graph"></div>
<% content_for :header_tags do %>
<%= javascript_include_tag 'raphael' %>
<%= javascript_include_tag 'revision_graph' %>
<% end %>