2013-03-06 11:31:28 +00:00
|
|
|
<% self.formats = ["html"] %>
|
|
|
|
|
|
|
|
<%= raw(
|
|
|
|
{
|
|
|
|
days: @graph.days.compact.map { |d| [d.day, d.strftime("%b")] },
|
|
|
|
commits: @graph.commits.map do |c|
|
|
|
|
{
|
2013-03-07 11:36:40 +00:00
|
|
|
parents: parents_zip_spaces(c.parents(@graph.map), c.parent_spaces),
|
2013-03-06 11:31:28 +00:00
|
|
|
author: {
|
|
|
|
name: c.author.name,
|
|
|
|
email: c.author.email,
|
|
|
|
icon: gravatar_icon(c.author.email, 20)
|
|
|
|
},
|
|
|
|
time: c.time,
|
|
|
|
space: c.spaces.first,
|
2013-03-26 00:51:39 +00:00
|
|
|
refs: get_refs(c),
|
2013-03-06 11:31:28 +00:00
|
|
|
id: c.sha,
|
|
|
|
date: c.date,
|
|
|
|
message: c.message,
|
|
|
|
}
|
|
|
|
end
|
|
|
|
}.to_json
|
|
|
|
) %>
|